//# 11 errors, 273 messages
//#
/*
    //#Process001.java:1:1: class: com.dmdirc.parser.irc.Process001
    //#Process001.java:1:1: method: com.dmdirc.parser.irc.Process001.com.dmdirc.parser.irc.Process001__static_init
 * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package com.dmdirc.parser.irc;

/**
 * Process a 001 message.
 */
public class Process001 extends IRCProcessor {
	/**
	 * Process a 001 message.
	 *
	 * @param sParam Type of line to process ("001")
	 * @param token IRCTokenised line to process
	 */
	@Override
	public void process(final String sParam, final String[] token) {
		myParser.got001 = true;
    //#Process001.java:37: method: void com.dmdirc.parser.irc.Process001.process(String, String[])
    //#input(void process(String, String[])): "Callback not found: "._tainted
    //#input(void process(String, String[])): "OnErrorInfo"._tainted
    //#input(void process(String, String[])): "OnServerReady"._tainted
    //#input(void process(String, String[])): __Descendant_Table[com/dmdirc/parser/irc/Process001]
    //#input(void process(String, String[])): __Descendant_Table[others]
    //#input(void process(String, String[])): __Dispatch_Table.callServerReady()Z
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ClientInfo.__Descendant_Table[com/dmdirc/parser/irc/ClientInfo]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ClientInfo.__Descendant_Table[others]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Descendant_Table[com/dmdirc/parser/irc/IRCParser]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Descendant_Table[others]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.addClient(Lcom/dmdirc/parser/irc/ClientInfo;)V
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.callErrorInfo(Lcom/dmdirc/parser/irc/ParserError;)Z
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.forceRemoveClient(Lcom/dmdirc/parser/irc/ClientInfo;)V
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.getCallbackManager()Lcom/dmdirc/parser/irc/callbacks/CallbackManager;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.getClientInfo(Ljava/lang/String;)Lcom/dmdirc/parser/irc/ClientInfo;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.getIRCStringConverter()Lcom/dmdirc/parser/irc/IRCStringConverter;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.getLastLine()Ljava/lang/String;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.getMyself()Lcom/dmdirc/parser/irc/ClientInfo;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.startPingTimer()V
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCStringConverter.__Descendant_Table[com/dmdirc/parser/irc/IRCStringConverter]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCStringConverter.__Descendant_Table[others]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCStringConverter.__Dispatch_Table.toLowerCase(Ljava/lang/String;)Ljava/lang/String;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[com/dmdirc/parser/irc/callbacks/CallbackObjectSpecific]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[com/dmdirc/parser/irc/callbacks/CallbackObject]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[others]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/callbacks/CallbackObject.__Dispatch_Table.call([Ljava/lang/Object;)Z
    //#input(void process(String, String[])): com/dmdirc/parser/irc/callbacks/CallbackObjectSpecific.__Dispatch_Table.call([Ljava/lang/Object;)Z
    //#input(void process(String, String[])): this
    //#input(void process(String, String[])): this.__Tag
    //#input(void process(String, String[])): this.myParser
    //#input(void process(String, String[])): this.myParser.__Tag
    //#input(void process(String, String[])): this.myParser.cMyself
    //#input(void process(String, String[])): this.myParser.cMyself.bIsFake
    //#input(void process(String, String[])): this.myParser.cMyself.sNickname
    //#input(void process(String, String[])): this.myParser.cMyself.sNickname._tainted
    //#input(void process(String, String[])): this.myParser.hClientList
    //#input(void process(String, String[])): this.myParser.lastLine
    //#input(void process(String, String[])): this.myParser.myCallbackManager
    //#input(void process(String, String[])): this.myParser.myCallbackManager.callbackHash
    //#input(void process(String, String[])): this.myParser.pingNeeded
    //#input(void process(String, String[])): this.myParser.pingTimer
    //#input(void process(String, String[])): this.myParser.pingTimerLength
    //#input(void process(String, String[])): this.myParser.pingTimerSem
    //#input(void process(String, String[])): this.myParser.stringConverter
    //#input(void process(String, String[])): this.myParser.stringConverter.__Tag
    //#input(void process(String, String[])): this.myParser.stringConverter.lowercase
    //#input(void process(String, String[])): this.myParser.stringConverter.lowercase.length
    //#input(void process(String, String[])): this.myParser.stringConverter.lowercase[0..65_535]
    //#input(void process(String, String[])): token
    //#input(void process(String, String[])): token.length
    //#input(void process(String, String[])): token[0]
    //#input(void process(String, String[])): token[0]._tainted
    //#input(void process(String, String[])): token[2]
    //#input(void process(String, String[])): token[2]._tainted
    //#output(void process(String, String[])): java.lang.String:substring(...)._tainted
    //#output(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1) num objects
    //#output(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1).__Tag
    //#output(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1).limit
    //#output(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1).lowercase
    //#output(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1).uppercase
    //#output(void process(String, String[])): new Timer(startPingTimer#1) num objects
    //#output(void process(String, String[])): new char[](IRCStringConverter#1) num objects
    //#output(void process(String, String[])): new char[](IRCStringConverter#1).length
    //#output(void process(String, String[])): new char[](IRCStringConverter#1)[0..65_535]
    //#output(void process(String, String[])): new char[](IRCStringConverter#2) num objects
    //#output(void process(String, String[])): new char[](IRCStringConverter#2).length
    //#output(void process(String, String[])): new char[](IRCStringConverter#2)[0..65_567]
    //#output(void process(String, String[])): this.myParser.cMyself.bIsFake
    //#output(void process(String, String[])): this.myParser.cMyself.sHost
    //#output(void process(String, String[])): this.myParser.cMyself.sIdent
    //#output(void process(String, String[])): this.myParser.cMyself.sNickname
    //#output(void process(String, String[])): this.myParser.got001
    //#output(void process(String, String[])): this.myParser.pingCountDown
    //#output(void process(String, String[])): this.myParser.pingTimer
    //#output(void process(String, String[])): this.myParser.sServerName
    //#output(void process(String, String[])): this.myParser.stringConverter
    //#new obj(void process(String, String[])): java.lang.String:substring(...)
    //#new obj(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1)
    //#new obj(void process(String, String[])): new Timer(startPingTimer#1)
    //#new obj(void process(String, String[])): new char[](IRCStringConverter#1)
    //#new obj(void process(String, String[])): new char[](IRCStringConverter#2)
    //#pre[1] (void process(String, String[])): init'ed(this.myParser.cMyself.bIsFake)
    //#pre[5] (void process(String, String[])): init'ed(this.myParser.pingTimer)
    //#pre[8] (void process(String, String[])): this.__Tag == com/dmdirc/parser/irc/Process001
    //#pre[9] (void process(String, String[])): this.myParser != null
    //#pre[10] (void process(String, String[])): this.myParser.__Tag == com/dmdirc/parser/irc/IRCParser
    //#pre[11] (void process(String, String[])): this.myParser.cMyself != null
    //#pre[16] (void process(String, String[])): this.myParser.pingNeeded != null
    //#pre[17] (void process(String, String[])): init'ed(this.myParser.pingTimerLength)
    //#pre[18] (void process(String, String[])): this.myParser.pingTimerSem != null
    //#pre[23] (void process(String, String[])): token != null
    //#pre[24] (void process(String, String[])): token.length >= 3
    //#pre[25] (void process(String, String[])): token[0] != null
    //#pre[4] (void process(String, String[])): (soft) this.myParser.cMyself.sNickname != null
    //#pre[6] (void process(String, String[])): (soft) init'ed(this.myParser.stringConverter)
    //#pre[12] (void process(String, String[])): (soft) this.myParser.hClientList != null
    //#pre[13] (void process(String, String[])): (soft) init'ed(this.myParser.lastLine)
    //#pre[14] (void process(String, String[])): (soft) this.myParser.myCallbackManager != null
    //#pre[15] (void process(String, String[])): (soft) this.myParser.myCallbackManager.callbackHash != null
    //#pre[19] (void process(String, String[])): (soft) this.myParser.stringConverter.__Tag == com/dmdirc/parser/irc/IRCStringConverter
    //#pre[20] (void process(String, String[])): (soft) this.myParser.stringConverter.lowercase != null
    //#pre[22] (void process(String, String[])): (soft) init'ed(this.myParser.stringConverter.lowercase[0..65_535])
    //#pre[27] (void process(String, String[])): (soft) token[2] != null
    //#presumption(void process(String, String[])): this.myParser.stringConverter.__Tag@52 == com/dmdirc/parser/irc/IRCStringConverter
    //#presumption(void process(String, String[])): this.myParser.stringConverter.__Tag@56 == com/dmdirc/parser/irc/IRCStringConverter
    //#presumption(void process(String, String[])): this.myParser.stringConverter.lowercase@52 != null
    //#presumption(void process(String, String[])): this.myParser.stringConverter.lowercase@56 != null
    //#post(void process(String, String[])): java.lang.String:substring(...)._tainted == token[0]._tainted
    //#post(void process(String, String[])): init'ed(java.lang.String:substring(...)._tainted)
    //#post(void process(String, String[])): this.myParser.cMyself.bIsFake == 0
    //#post(void process(String, String[])): this.myParser.cMyself.sHost == One-of{&"", undefined, old this.myParser.cMyself.sHost}
    //#post(void process(String, String[])): this.myParser.cMyself.sIdent == One-of{&"", undefined, old this.myParser.cMyself.sIdent}
    //#post(void process(String, String[])): this.myParser.cMyself.sNickname == One-of{undefined, old this.myParser.cMyself.sNickname}
    //#post(void process(String, String[])): this.myParser.got001 == 1
    //#post(void process(String, String[])): this.myParser.pingCountDown == 1
    //#post(void process(String, String[])): new Timer(startPingTimer#1) num objects == 1
    //#post(void process(String, String[])): this.myParser.pingTimer == &new Timer(startPingTimer#1)
    //#post(void process(String, String[])): this.myParser.sServerName == &java.lang.String:substring(...)
    //#post(void process(String, String[])): init'ed(this.myParser.stringConverter)
    //#post(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1) num objects <= 1
    //#post(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1) num objects == 0
    //#post(void process(String, String[])): init'ed(new IRCStringConverter(getIRCStringConverter#1).__Tag)
    //#post(void process(String, String[])): possibly_updated(new IRCStringConverter(getIRCStringConverter#1).__Tag)
    //#post(void process(String, String[])): init'ed(new IRCStringConverter(getIRCStringConverter#1).limit)
    //#post(void process(String, String[])): possibly_updated(new IRCStringConverter(getIRCStringConverter#1).limit)
    //#post(void process(String, String[])): init'ed(new IRCStringConverter(getIRCStringConverter#1).lowercase)
    //#post(void process(String, String[])): possibly_updated(new IRCStringConverter(getIRCStringConverter#1).lowercase)
    //#post(void process(String, String[])): init'ed(new IRCStringConverter(getIRCStringConverter#1).uppercase)
    //#post(void process(String, String[])): possibly_updated(new IRCStringConverter(getIRCStringConverter#1).uppercase)
    //#post(void process(String, String[])): new char[](IRCStringConverter#1) num objects <= 1
    //#post(void process(String, String[])): new char[](IRCStringConverter#1) num objects == 0
    //#post(void process(String, String[])): init'ed(new char[](IRCStringConverter#1).length)
    //#post(void process(String, String[])): possibly_updated(new char[](IRCStringConverter#1).length)
    //#post(void process(String, String[])): possibly_updated(new char[](IRCStringConverter#1)[0..65_535])
    //#post(void process(String, String[])): new char[](IRCStringConverter#2) num objects <= 1
    //#post(void process(String, String[])): new char[](IRCStringConverter#2) num objects == 0
    //#post(void process(String, String[])): init'ed(new char[](IRCStringConverter#2).length)
    //#post(void process(String, String[])): possibly_updated(new char[](IRCStringConverter#2).length)
    //#post(void process(String, String[])): possibly_updated(new char[](IRCStringConverter#2)[0..65_567])
    //#unanalyzed(void process(String, String[])): Effects-of-calling:getCallbackManager
    //#unanalyzed(void process(String, String[])): Effects-of-calling:getCallbackType
    //#unanalyzed(void process(String, String[])): Effects-of-calling:call
    //#unanalyzed(void process(String, String[])): Effects-of-calling:getNickname
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Map:containsKey
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.String:toLowerCase
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.RuntimeException
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Map:get
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.String:isEmpty
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.String:charAt
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.String:substring
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.String:split
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.String:toCharArray
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.String:length
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.String
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Map:put
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Map:remove
    //#unanalyzed(void process(String, String[])): Effects-of-calling:parseHost
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.concurrent.atomic.AtomicBoolean:set
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.concurrent.Semaphore:acquireUninterruptibly
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Timer:cancel
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Timer
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.TimerTask
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Timer:schedule
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.concurrent.Semaphore:release
    //#test_vector(void process(String, String[])): this.myParser.cMyself.bIsFake: {0}, {1}
    //#test_vector(void process(String, String[])): java.lang.String:equalsIgnoreCase(...)@50: {1}, {0}
		// << :demon1.uk.quakenet.org 001 Java-Test :Welcome to the QuakeNet IRC Network, Java-Test
		myParser.sServerName = token[0].substring(1,token[0].length());
		final String sNick = token[2];
				
		// myself will be fake if we havn't recieved a 001 yet
		if (myParser.getMyself().isFake()) {
			// Update stored information
			myParser.getMyself().setUserBits(sNick, true, true);
			myParser.getMyself().setFake(false);
			myParser.addClient(myParser.getMyself());
    //#Process001.java:47: ?!precondition failure
    //#    com/dmdirc/parser/irc/IRCParser.addClient: client.sNickname != null
    //#    severity: HIGH
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: void process(String, String[])
    //#    basic block: bb_2
    //#    assertion: undefined != null
    //#    callee: void com/dmdirc/parser/irc/IRCParser.addClient(ClientInfo)
    //#    callee assertion: client.sNickname != null
    //#    callee file: IRCParser.java
    //#    callee precondition index: [2]
    //#    callee srcpos: 1976
    //#    VN: undefined
    //#    Expected: Inverse{null}
    //#    Bad: Addr_Set{null, Invalid}
    //#    Attribs:  Ptr  null in Bad
    //#Process001.java:47: ?precondition failure
    //#    com/dmdirc/parser/irc/IRCParser.addClient: (soft) init'ed(this.stringConverter.lowercase[0..65_535])
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: void process(String, String[])
    //#    basic block: bb_2
    //#    assertion: (soft) init'ed(this.myParser.stringConverter.lowercase[0..65_535])
    //#    callee: void com/dmdirc/parser/irc/IRCParser.addClient(ClientInfo)
    //#    callee assertion: (soft) init'ed(this.stringConverter.lowercase[0..65_535])
    //#    callee file: IRCParser.java
    //#    callee precondition index: [10]
    //#    callee srcpos: 1976
    //#    VN: this.myParser.stringConverter.lowercase[0..65_535]
    //#    Expected: {0..65_535}
    //#    Bad: {Invalid}
    //#    Attribs:  Int  Soft  Bad only invalid
		} else {
			// Another 001? if nicknames change then we need to update the hashtable
			if (!myParser.getMyself().getNickname().equalsIgnoreCase(sNick)) {
				// Nick changed, remove old me
				myParser.forceRemoveClient(myParser.getMyself());
    //#Process001.java:52: ?precondition failure
    //#    com/dmdirc/parser/irc/IRCParser.forceRemoveClient: (soft) init'ed(this.stringConverter.lowercase[0..65_535])
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: void process(String, String[])
    //#    basic block: bb_4
    //#    assertion: (soft) init'ed(this.myParser.stringConverter.lowercase[0..65_535])
    //#    callee: void com/dmdirc/parser/irc/IRCParser.forceRemoveClient(ClientInfo)
    //#    callee assertion: (soft) init'ed(this.stringConverter.lowercase[0..65_535])
    //#    callee file: IRCParser.java
    //#    callee precondition index: [10]
    //#    callee srcpos: 1998
    //#    VN: this.myParser.stringConverter.lowercase[0..65_535]
    //#    Expected: {0..65_535}
    //#    Bad: {Invalid}
    //#    Attribs:  Int  Soft  Bad only invalid
				/// Update stored information
				myParser.getMyself().setUserBits(sNick, true, true);
				// Check that we don't already know someone by this name
				if (myParser.getClientInfo(myParser.getMyself().getNickname()) == null) {
    //#Process001.java:56: ?precondition failure
    //#    com/dmdirc/parser/irc/ClientInfo.getNickname: init'ed(this.sNickname)
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: void process(String, String[])
    //#    basic block: bb_4
    //#    assertion: init'ed(undefined)
    //#    callee: String com/dmdirc/parser/irc/ClientInfo.getNickname()
    //#    callee assertion: init'ed(this.sNickname)
    //#    callee file: ClientInfo.java
    //#    callee precondition index: [2]
    //#    callee srcpos: 187
    //#    VN: undefined
    //#    Expected: Univ-VN-Set
    //#    Bad: {Invalid}
    //#    Attribs:  Ptr  Bad only invalid
    //#Process001.java:56: ?use of default init
    //#    init'ed(Obj_Id#376:getNickname(...))
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: void process(String, String[])
    //#    basic block: bb_4
    //#    assertion: init'ed(Obj_Id#376:getNickname(...))
    //#    VN: undefined
    //#    Expected: Univ-VN-Set
    //#    Bad: {Invalid}
    //#    Attribs:  Ptr  Bad only invalid
    //#Process001.java:56: ?use of default init
    //#    init'ed(getNickname(...))
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: void process(String, String[])
    //#    basic block: bb_4
    //#    assertion: init'ed(getNickname(...))
    //#    VN: undefined
    //#    Expected: Univ-VN-Set
    //#    Bad: {Invalid}
    //#    Attribs:  Ptr  Bad only invalid
    //#Process001.java:56: ?!precondition failure
    //#    com/dmdirc/parser/irc/IRCParser.getClientInfo: sHost != null
    //#    severity: HIGH
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: void process(String, String[])
    //#    basic block: bb_4
    //#    assertion: undefined != null
    //#    callee: ClientInfo com/dmdirc/parser/irc/IRCParser.getClientInfo(String)
    //#    callee assertion: sHost != null
    //#    callee file: IRCParser.java
    //#    callee precondition index: [2]
    //#    callee srcpos: 870
    //#    VN: undefined
    //#    Expected: Inverse{null}
    //#    Bad: Addr_Set{null, Invalid}
    //#    Attribs:  Ptr  null in Bad
					// And add to list
					myParser.addClient(myParser.getMyself());
    //#Process001.java:58: ?!precondition failure
    //#    com/dmdirc/parser/irc/IRCParser.addClient: client.sNickname != null
    //#    severity: HIGH
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: void process(String, String[])
    //#    basic block: bb_5
    //#    assertion: undefined != null
    //#    callee: void com/dmdirc/parser/irc/IRCParser.addClient(ClientInfo)
    //#    callee assertion: client.sNickname != null
    //#    callee file: IRCParser.java
    //#    callee precondition index: [2]
    //#    callee srcpos: 1976
    //#    VN: undefined
    //#    Expected: Inverse{null}
    //#    Bad: Addr_Set{null, Invalid}
    //#    Attribs:  Ptr  null in Bad
				} else {
					// Someone else already know? this is bad!
					myParser.callErrorInfo(new ParserError(ParserError.ERROR_FATAL, "001 overwrites existing client?", myParser.getLastLine()));
				}
			}
		}
		
		callServerReady();
		myParser.startPingTimer();
	}
    //#Process001.java:68: end of method: void com.dmdirc.parser.irc.Process001.process(String, String[])
	
	/**
	 * Callback to all objects implementing the ServerReady Callback.
	 *
	 * @see IServerReady
	 * @return true if a method was called, false otherwise
	 */	
	protected boolean callServerReady() {
		return getCallbackManager().getCallbackType("OnServerReady").call();
    //#Process001.java:77: method: bool com.dmdirc.parser.irc.Process001.callServerReady()
    //#Process001.java:77: ?null dereference
    //#    getCallbackType(...) != null
    //#    severity: MEDIUM
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: bool callServerReady()
    //#    basic block: Entry_BB_1
    //#    assertion: getCallbackType(...) != null
    //#    VN: getCallbackType(...)
    //#    Expected: Inverse{null}
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad
    //#Process001.java:77: ?use of default init
    //#    init'ed(getCallbackType(...).__Tag)
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: bool callServerReady()
    //#    basic block: Entry_BB_1
    //#    assertion: init'ed(getCallbackType(...).__Tag)
    //#    VN: getCallbackType(...).__Tag
    //#    Expected: {-Inf..+Inf}
    //#    Bad: {Invalid}
    //#    Attribs:  Int  Bad only invalid
    //#Process001.java:77: ?null dereference
    //#    com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[getCallbackType(...).__Tag] != null
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: bool callServerReady()
    //#    basic block: Entry_BB_1
    //#    assertion: com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[getCallbackType(...).__Tag] != null
    //#    VN: com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[getCallbackType(...).__Tag]
    //#    Expected: Inverse{null}
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad
    //#Process001.java:77: Warning: call too complex - analysis skipped
    //#    call on bool call(Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.parser.irc.Process001
    //#    method: bool callServerReady()
    //#    unanalyzed callee: bool call(Object[])
    //#input(bool callServerReady()): "Callback not found: "._tainted
    //#input(bool callServerReady()): "OnServerReady"._tainted
    //#input(bool callServerReady()): com/dmdirc/parser/irc/IRCParser.__Descendant_Table[com/dmdirc/parser/irc/IRCParser]
    //#input(bool callServerReady()): com/dmdirc/parser/irc/IRCParser.__Descendant_Table[others]
    //#input(bool callServerReady()): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.getCallbackManager()Lcom/dmdirc/parser/irc/callbacks/CallbackManager;
    //#input(bool callServerReady()): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[com/dmdirc/parser/irc/callbacks/CallbackObjectSpecific]
    //#input(bool callServerReady()): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[com/dmdirc/parser/irc/callbacks/CallbackObject]
    //#input(bool callServerReady()): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[others]
    //#input(bool callServerReady()): com/dmdirc/parser/irc/callbacks/CallbackObject.__Dispatch_Table.call([Ljava/lang/Object;)Z
    //#input(bool callServerReady()): com/dmdirc/parser/irc/callbacks/CallbackObjectSpecific.__Dispatch_Table.call([Ljava/lang/Object;)Z
    //#input(bool callServerReady()): this
    //#input(bool callServerReady()): this.myParser
    //#input(bool callServerReady()): this.myParser.__Tag
    //#input(bool callServerReady()): this.myParser.myCallbackManager
    //#input(bool callServerReady()): this.myParser.myCallbackManager.callbackHash
    //#output(bool callServerReady()): return_value
    //#pre[2] (bool callServerReady()): this.myParser != null
    //#pre[3] (bool callServerReady()): this.myParser.__Tag == com/dmdirc/parser/irc/IRCParser
    //#pre[4] (bool callServerReady()): this.myParser.myCallbackManager != null
    //#pre[5] (bool callServerReady()): this.myParser.myCallbackManager.callbackHash != null
    //#presumption(bool callServerReady()): getCallbackManager(...)@77 init'ed
    //#post(bool callServerReady()): init'ed(return_value)
    //#unanalyzed(bool callServerReady()): Effects-of-calling:getCallbackManager
    //#unanalyzed(bool callServerReady()): Effects-of-calling:java.util.Map:containsKey
    //#unanalyzed(bool callServerReady()): Effects-of-calling:java.lang.String:toLowerCase
    //#unanalyzed(bool callServerReady()): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(bool callServerReady()): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(bool callServerReady()): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(bool callServerReady()): Effects-of-calling:java.lang.RuntimeException
    //#unanalyzed(bool callServerReady()): Effects-of-calling:java.util.Map:get
    //#Process001.java:77: end of method: bool com.dmdirc.parser.irc.Process001.callServerReady()
	}
	
	/**
	 * What does this IRCProcessor handle.
	 *
	 * @return String[] with the names of the tokens we handle.
	 */
	@Override
	public String[] handles() {
		return new String[]{"001"};
    //#Process001.java:87: method: String[] com.dmdirc.parser.irc.Process001.handles()
    //#output(String[] handles()): new String[](handles#1) num objects
    //#output(String[] handles()): return_value.length
    //#output(String[] handles()): return_value[0]
    //#output(String[] handles()): return_value
    //#new obj(String[] handles()): new String[](handles#1)
    //#post(String[] handles()): return_value == &new String[](handles#1)
    //#post(String[] handles()): new String[](handles#1) num objects == 1
    //#post(String[] handles()): return_value.length == 1
    //#post(String[] handles()): return_value[0] == &"001"
    //#Process001.java:87: end of method: String[] com.dmdirc.parser.irc.Process001.handles()
	} 
	
	/**
	 * Create a new instance of the IRCProcessor Object.
	 *
	 * @param parser IRCParser That owns this IRCProcessor
	 * @param manager ProcessingManager that is in charge of this IRCProcessor
	 */
	protected Process001 (IRCParser parser, ProcessingManager manager) { super(parser, manager); }
    //#Process001.java:96: method: void com.dmdirc.parser.irc.Process001.com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)
    //#input(void com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)): manager
    //#input(void com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)): parser
    //#input(void com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)): this
    //#output(void com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)): this.myManager
    //#output(void com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)): this.myParser
    //#post(void com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)): this.myManager == manager
    //#post(void com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)): init'ed(this.myManager)
    //#post(void com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)): this.myParser == parser
    //#post(void com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)): init'ed(this.myParser)
    //#Process001.java:96: end of method: void com.dmdirc.parser.irc.Process001.com.dmdirc.parser.irc.Process001(IRCParser, ProcessingManager)

}
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Descendant_Table[com/dmdirc/parser/irc/Process001]
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.callDebugInfo(ILjava/lang/String;)Z
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.callDebugInfo(ILjava/lang/String;[Ljava/lang/Object;)Z
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.callErrorInfo(Lcom/dmdirc/parser/irc/ParserError;)Z
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.callServerReady()Z
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.getCallbackManager()Lcom/dmdirc/parser/irc/callbacks/CallbackManager;
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.getChannelInfo(Ljava/lang/String;)Lcom/dmdirc/parser/irc/ChannelInfo;
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.getClientInfo(Ljava/lang/String;)Lcom/dmdirc/parser/irc/ClientInfo;
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.getLowerName()Ljava/lang/String;
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.getName()Ljava/lang/String;
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.handles()[Ljava/lang/String;
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.isValidChannelName(Ljava/lang/String;)Z
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.process(Ljava/lang/String;[Ljava/lang/String;)V
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.sendString(Ljava/lang/String;)V
    //#output(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.toString()Ljava/lang/String;
    //#output(com.dmdirc.parser.irc.Process001__static_init): com/dmdirc/parser/irc/IRCProcessor.__Descendant_Table[com/dmdirc/parser/irc/Process001]
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Descendant_Table[com/dmdirc/parser/irc/Process001] == &__Dispatch_Table
    //#post(com.dmdirc.parser.irc.Process001__static_init): com/dmdirc/parser/irc/IRCProcessor.__Descendant_Table[com/dmdirc/parser/irc/Process001] == &__Dispatch_Table
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.callDebugInfo(ILjava/lang/String;)Z == &com/dmdirc/parser/irc/IRCProcessor.callDebugInfo
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.callDebugInfo(ILjava/lang/String;[Ljava/lang/Object;)Z == &com/dmdirc/parser/irc/IRCProcessor.callDebugInfo
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.callErrorInfo(Lcom/dmdirc/parser/irc/ParserError;)Z == &com/dmdirc/parser/irc/IRCProcessor.callErrorInfo
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.callServerReady()Z == &callServerReady
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.getCallbackManager()Lcom/dmdirc/parser/irc/callbacks/CallbackManager; == &com/dmdirc/parser/irc/IRCProcessor.getCallbackManager
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.getChannelInfo(Ljava/lang/String;)Lcom/dmdirc/parser/irc/ChannelInfo; == &com/dmdirc/parser/irc/IRCProcessor.getChannelInfo
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.getClientInfo(Ljava/lang/String;)Lcom/dmdirc/parser/irc/ClientInfo; == &com/dmdirc/parser/irc/IRCProcessor.getClientInfo
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.getLowerName()Ljava/lang/String; == &com/dmdirc/parser/irc/IRCProcessor.getLowerName
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.getName()Ljava/lang/String; == &com/dmdirc/parser/irc/IRCProcessor.getName
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.handles()[Ljava/lang/String; == &handles
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.isValidChannelName(Ljava/lang/String;)Z == &com/dmdirc/parser/irc/IRCProcessor.isValidChannelName
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.process(Ljava/lang/String;[Ljava/lang/String;)V == &process
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.sendString(Ljava/lang/String;)V == &com/dmdirc/parser/irc/IRCProcessor.sendString
    //#post(com.dmdirc.parser.irc.Process001__static_init): __Dispatch_Table.toString()Ljava/lang/String; == &com/dmdirc/parser/irc/IRCProcessor.toString
    //#Process001.java:: end of method: com.dmdirc.parser.irc.Process001.com.dmdirc.parser.irc.Process001__static_init
    //#Process001.java:: end of class: com.dmdirc.parser.irc.Process001
