//# 6 errors, 276 messages
//#
/*
    //#ProcessPart.java:1:1: class: com.dmdirc.parser.irc.ProcessPart
    //#ProcessPart.java:1:1: method: com.dmdirc.parser.irc.ProcessPart.com.dmdirc.parser.irc.ProcessPart__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 channel part.
 */
public class ProcessPart extends IRCProcessor {

	/**
	 * Process a channel part.
	 *
	 * @param sParam Type of line to process ("PART")
	 * @param token IRCTokenised line to process
	 */
	@Override
	public void process(final String sParam, final String[] token) {
		// :nick!ident@host PART #Channel
		// :nick!ident@host PART #Channel :reason
		if (token.length < 3) { return; }
    //#ProcessPart.java:40: method: void com.dmdirc.parser.irc.ProcessPart.process(String, String[])
    //#input(void process(String, String[])): ") that I am not on. [User: "._tainted
    //#input(void process(String, String[])): "Callback not found: "._tainted
    //#input(void process(String, String[])): "Got part for channel ("._tainted
    //#input(void process(String, String[])): "OnChannelPart"._tainted
    //#input(void process(String, String[])): "OnDebugInfo"._tainted
    //#input(void process(String, String[])): "OnErrorInfo"._tainted
    //#input(void process(String, String[])): "]"._tainted
    //#input(void process(String, String[])): __Descendant_Table[com/dmdirc/parser/irc/ProcessPart]
    //#input(void process(String, String[])): __Descendant_Table[others]
    //#input(void process(String, String[])): __Dispatch_Table.callChannelPart(Lcom/dmdirc/parser/irc/ChannelInfo;Lcom/dmdirc/parser/irc/ChannelClientInfo;Ljava/lang/String;)Z
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelClientInfo.__Descendant_Table[com/dmdirc/parser/irc/ChannelClientInfo]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelClientInfo.__Descendant_Table[others]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelClientInfo.__Dispatch_Table.getChannel()Lcom/dmdirc/parser/irc/ChannelInfo;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelClientInfo.__Dispatch_Table.getClient()Lcom/dmdirc/parser/irc/ClientInfo;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelClientInfo.__Dispatch_Table.getNickname()Ljava/lang/String;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelInfo.__Descendant_Table[com/dmdirc/parser/irc/ChannelInfo]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelInfo.__Descendant_Table[others]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelInfo.__Dispatch_Table.delClient(Lcom/dmdirc/parser/irc/ClientInfo;)V
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelInfo.__Dispatch_Table.emptyChannel()V
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelInfo.__Dispatch_Table.getName()Ljava/lang/String;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/ChannelInfo.__Dispatch_Table.getUser(Lcom/dmdirc/parser/irc/ClientInfo;)Lcom/dmdirc/parser/irc/ChannelClientInfo;
    //#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.callDebugInfo(ILjava/lang/String;)Z
    //#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.getChannelInfo(Ljava/lang/String;)Lcom/dmdirc/parser/irc/ChannelInfo;
    //#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.removeChannel(Lcom/dmdirc/parser/irc/ChannelInfo;)V
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.removeClient(Lcom/dmdirc/parser/irc/ClientInfo;)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.hChannelList
    //#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.removeAfterCallback
    //#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[1, 3..4_294_967_295]
    //#input(void process(String, String[])): token[2]
    //#input(void process(String, String[])): token[2]._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 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.stringConverter
    //#new obj(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1)
    //#new obj(void process(String, String[])): new char[](IRCStringConverter#1)
    //#new obj(void process(String, String[])): new char[](IRCStringConverter#2)
    //#pre[18] (void process(String, String[])): token != null
    //#pre[19] (void process(String, String[])): token.length <= 4_294_967_296
    //#pre[1] (void process(String, String[])): (soft) init'ed(this.myParser.stringConverter)
    //#pre[3] (void process(String, String[])): (soft) this.__Tag == com/dmdirc/parser/irc/ProcessPart
    //#pre[4] (void process(String, String[])): (soft) this.myParser != null
    //#pre[5] (void process(String, String[])): (soft) this.myParser.__Tag == com/dmdirc/parser/irc/IRCParser
    //#pre[6] (void process(String, String[])): (soft) init'ed(this.myParser.cMyself)
    //#pre[7] (void process(String, String[])): (soft) this.myParser.hChannelList != null
    //#pre[9] (void process(String, String[])): (soft) this.myParser.hClientList != null
    //#pre[10] (void process(String, String[])): (soft) init'ed(this.myParser.lastLine)
    //#pre[11] (void process(String, String[])): (soft) this.myParser.myCallbackManager != null
    //#pre[12] (void process(String, String[])): (soft) this.myParser.myCallbackManager.callbackHash != null
    //#pre[13] (void process(String, String[])): (soft) init'ed(this.myParser.removeAfterCallback)
    //#pre[14] (void process(String, String[])): (soft) this.myParser.stringConverter.__Tag == com/dmdirc/parser/irc/IRCStringConverter
    //#pre[15] (void process(String, String[])): (soft) this.myParser.stringConverter.lowercase != null
    //#pre[17] (void process(String, String[])): (soft) init'ed(this.myParser.stringConverter.lowercase[0..65_535])
    //#pre[20] (void process(String, String[])): (soft) token[0] != null
    //#pre[23] (void process(String, String[])): (soft) init'ed(token[1, 3..4_294_967_295])
    //#pre[24] (void process(String, String[])): (soft) token[2] != null
    //#presumption(void process(String, String[])): iChannel.__Tag == com/dmdirc/parser/irc/ChannelInfo
    //#presumption(void process(String, String[])): iChannel.hChannelUserList != null
    //#presumption(void process(String, String[])): iChannel.myParser != null
    //#presumption(void process(String, String[])): iChannel.myParser.__Tag == com/dmdirc/parser/irc/IRCParser
    //#presumption(void process(String, String[])): iChannel.myParser.hClientList != null
    //#presumption(void process(String, String[])): iChannel.myParser.stringConverter.lowercase@68 != null
    //#presumption(void process(String, String[])): iChannel.sName != null
    //#presumption(void process(String, String[])): iClient.sHost != null
    //#presumption(void process(String, String[])): this.myParser.stringConverter.__Tag == com/dmdirc/parser/irc/IRCStringConverter
    //#presumption(void process(String, String[])): this.myParser.stringConverter.__Tag == com/dmdirc/parser/irc/IRCStringConverter
    //#presumption(void process(String, String[])): this.myParser.stringConverter.lowercase != null
    //#presumption(void process(String, String[])): this.myParser.stringConverter.lowercase != null
    //#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[])): new IRCStringConverter(getIRCStringConverter#1).__Tag == com/dmdirc/parser/irc/IRCStringConverter
    //#post(void process(String, String[])): init'ed(new IRCStringConverter(getIRCStringConverter#1).limit)
    //#post(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1).limit == 4
    //#post(void process(String, String[])): init'ed(new IRCStringConverter(getIRCStringConverter#1).lowercase)
    //#post(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1).lowercase == &new char[](IRCStringConverter#1)
    //#post(void process(String, String[])): init'ed(new IRCStringConverter(getIRCStringConverter#1).uppercase)
    //#post(void process(String, String[])): new IRCStringConverter(getIRCStringConverter#1).uppercase == &new char[](IRCStringConverter#2)
    //#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[])): new char[](IRCStringConverter#1).length == 127
    //#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[])): new char[](IRCStringConverter#2).length == 127
    //#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:getName
    //#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:getClientInfo
    //#unanalyzed(void process(String, String[])): Effects-of-calling:getChannelInfo
    //#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:callErrorInfo
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Map:values
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Collection:iterator
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(void process(String, String[])): Effects-of-calling:getClient
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.String:format
    //#unanalyzed(void process(String, String[])): Effects-of-calling:callDebugInfo
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Map:remove
    //#unanalyzed(void process(String, String[])): Effects-of-calling:getChannel
    //#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:isEmpty
    //#unanalyzed(void process(String, String[])): Effects-of-calling:forceRemoveClient
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Map:clear
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.Throwable:__curr_excep_obj
    //#unanalyzed(void process(String, String[])): Effects-of-calling:parseHost
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.Integer:valueOf
    //#test_vector(void process(String, String[])): this.myParser.removeAfterCallback: {0}, {1}
    //#test_vector(void process(String, String[])): token.length: {3}, {0..2}, {4..4_294_967_296}
    //#test_vector(void process(String, String[])): java.lang.String:isEmpty(...)@49: {0}, {1}
		ClientInfo iClient;
		ChannelInfo iChannel;
		ChannelClientInfo iChannelClient;
		
		iClient = getClientInfo(token[0]);
    //#ProcessPart.java:45: ?precondition failure
    //#    com/dmdirc/parser/irc/IRCProcessor.getClientInfo: (soft) init'ed(this.myParser.stringConverter.lowercase[0..65_535])
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.ProcessPart
    //#    method: void process(String, String[])
    //#    basic block: bb_3
    //#    assertion: (soft) init'ed(this.myParser.stringConverter.lowercase[0..65_535])
    //#    callee: ClientInfo com/dmdirc/parser/irc/IRCProcessor.getClientInfo(String)
    //#    callee assertion: (soft) init'ed(this.myParser.stringConverter.lowercase[0..65_535])
    //#    callee file: IRCProcessor.java
    //#    callee precondition index: [11]
    //#    callee srcpos: 106
    //#    VN: this.myParser.stringConverter.lowercase[0..65_535]
    //#    Expected: {0..65_535}
    //#    Bad: {Invalid}
    //#    Attribs:  Int  Soft  Bad only invalid
		iChannel = getChannelInfo(token[2]);
		
		if (iClient == null) { return; }
		if (IRCParser.ALWAYS_UPDATECLIENT && iClient.getHost().isEmpty()) {
			// This may seem pointless - updating before they leave - but the formatter needs it!
			iClient.setUserBits(token[0],false);
		}
		if (iChannel == null) { 
			if (iClient != myParser.getMyself()) {
				callErrorInfo(new ParserError(ParserError.ERROR_WARNING, "Got part for channel ("+token[2]+") that I am not on. [User: "+token[0]+"]", myParser.getLastLine()));
			}
			return;
		} else {
			String sReason = "";
			if (token.length > 3) { sReason = token[token.length-1]; }
			iChannelClient = iChannel.getUser(iClient);
    //#ProcessPart.java:61: ?use of default init
    //#    init'ed(iChannel.__Tag)
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.ProcessPart
    //#    method: void process(String, String[])
    //#    basic block: bb_13
    //#    assertion: init'ed(iChannel.__Tag)
    //#    VN: iChannel.__Tag
    //#    Expected: {-Inf..+Inf}
    //#    Bad: {Invalid}
    //#    Attribs:  Int  Bad only invalid
    //#ProcessPart.java:61: ?null dereference
    //#    com/dmdirc/parser/irc/ChannelInfo.__Descendant_Table[iChannel.__Tag] != null
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.ProcessPart
    //#    method: void process(String, String[])
    //#    basic block: bb_13
    //#    assertion: com/dmdirc/parser/irc/ChannelInfo.__Descendant_Table[iChannel.__Tag] != null
    //#    VN: com/dmdirc/parser/irc/ChannelInfo.__Descendant_Table[iChannel.__Tag]
    //#    Expected: Inverse{null}
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad
			if (iChannelClient == null) {
				// callErrorInfo(new ParserError(ParserError.ERROR_WARNING, "Got part for channel ("+token[2]+") for a non-existant user. [User: "+token[0]+"]", myParser.getLastLine()));
				return;
			}
			if (myParser.removeAfterCallback) { callChannelPart(iChannel,iChannelClient,sReason); }
			callDebugInfo(IRCParser.DEBUG_INFO, "Removing %s from %s",iClient.getNickname(),iChannel.getName());
			iChannel.delClient(iClient);
			if (!myParser.removeAfterCallback) { callChannelPart(iChannel,iChannelClient,sReason); }
			if (iClient == myParser.getMyself()) {
				iChannel.emptyChannel();
				myParser.removeChannel(iChannel);
			}
		}
	}
    //#ProcessPart.java:75: end of method: void com.dmdirc.parser.irc.ProcessPart.process(String, String[])
	
	/**
	 * Callback to all objects implementing the ChannelPart Callback.
	 *
	 * @see IChannelPart
	 * @param cChannel Channel that the user parted
	 * @param cChannelClient Client that parted
	 * @param sReason Reason given for parting (May be "")
	 * @return true if a method was called, false otherwise
	 */
	protected boolean callChannelPart(final ChannelInfo cChannel, final ChannelClientInfo cChannelClient, final String sReason) {
		return getCallbackManager().getCallbackType("OnChannelPart").call(cChannel, cChannelClient, sReason);
    //#ProcessPart.java:87: method: bool com.dmdirc.parser.irc.ProcessPart.callChannelPart(ChannelInfo, ChannelClientInfo, String)
    //#ProcessPart.java:87: ?null dereference
    //#    getCallbackType(...) != null
    //#    severity: MEDIUM
    //#    class: com.dmdirc.parser.irc.ProcessPart
    //#    method: bool callChannelPart(ChannelInfo, ChannelClientInfo, String)
    //#    basic block: Entry_BB_1
    //#    assertion: getCallbackType(...) != null
    //#    VN: getCallbackType(...)
    //#    Expected: Inverse{null}
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad
    //#ProcessPart.java:87: ?use of default init
    //#    init'ed(getCallbackType(...).__Tag)
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.ProcessPart
    //#    method: bool callChannelPart(ChannelInfo, ChannelClientInfo, String)
    //#    basic block: Entry_BB_1
    //#    assertion: init'ed(getCallbackType(...).__Tag)
    //#    VN: getCallbackType(...).__Tag
    //#    Expected: {-Inf..+Inf}
    //#    Bad: {Invalid}
    //#    Attribs:  Int  Bad only invalid
    //#ProcessPart.java:87: ?null dereference
    //#    com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[getCallbackType(...).__Tag] != null
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.ProcessPart
    //#    method: bool callChannelPart(ChannelInfo, ChannelClientInfo, String)
    //#    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
    //#ProcessPart.java:87: Warning: call too complex - analysis skipped
    //#    call on bool call(Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.parser.irc.ProcessPart
    //#    method: bool callChannelPart(ChannelInfo, ChannelClientInfo, String)
    //#    unanalyzed callee: bool call(Object[])
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): "Callback not found: "._tainted
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): "OnChannelPart"._tainted
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): cChannel
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): cChannelClient
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): com/dmdirc/parser/irc/IRCParser.__Descendant_Table[com/dmdirc/parser/irc/IRCParser]
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): com/dmdirc/parser/irc/IRCParser.__Descendant_Table[others]
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.getCallbackManager()Lcom/dmdirc/parser/irc/callbacks/CallbackManager;
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[com/dmdirc/parser/irc/callbacks/CallbackObjectSpecific]
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[com/dmdirc/parser/irc/callbacks/CallbackObject]
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[others]
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): com/dmdirc/parser/irc/callbacks/CallbackObject.__Dispatch_Table.call([Ljava/lang/Object;)Z
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): com/dmdirc/parser/irc/callbacks/CallbackObjectSpecific.__Dispatch_Table.call([Ljava/lang/Object;)Z
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): sReason
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): this
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): this.myParser
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): this.myParser.__Tag
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): this.myParser.myCallbackManager
    //#input(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): this.myParser.myCallbackManager.callbackHash
    //#output(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): return_value
    //#pre[5] (bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): this.myParser != null
    //#pre[6] (bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): this.myParser.__Tag == com/dmdirc/parser/irc/IRCParser
    //#pre[7] (bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): this.myParser.myCallbackManager != null
    //#pre[8] (bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): this.myParser.myCallbackManager.callbackHash != null
    //#presumption(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): getCallbackManager(...)@87 init'ed
    //#post(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): init'ed(return_value)
    //#unanalyzed(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): Effects-of-calling:getCallbackManager
    //#unanalyzed(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): Effects-of-calling:java.util.Map:containsKey
    //#unanalyzed(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): Effects-of-calling:java.lang.String:toLowerCase
    //#unanalyzed(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): Effects-of-calling:java.lang.RuntimeException
    //#unanalyzed(bool callChannelPart(ChannelInfo, ChannelClientInfo, String)): Effects-of-calling:java.util.Map:get
    //#ProcessPart.java:87: end of method: bool com.dmdirc.parser.irc.ProcessPart.callChannelPart(ChannelInfo, ChannelClientInfo, String)
	}
	
	/**
	 * What does this IRCProcessor handle.
	 *
	 * @return String[] with the names of the tokens we handle.
	 */
	@Override
	public String[] handles() {
		return new String[]{"PART"};
    //#ProcessPart.java:97: method: String[] com.dmdirc.parser.irc.ProcessPart.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] == &"PART"
    //#ProcessPart.java:97: end of method: String[] com.dmdirc.parser.irc.ProcessPart.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 ProcessPart (IRCParser parser, ProcessingManager manager) { super(parser, manager); }
    //#ProcessPart.java:106: method: void com.dmdirc.parser.irc.ProcessPart.com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)
    //#input(void com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)): manager
    //#input(void com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)): parser
    //#input(void com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)): this
    //#output(void com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)): this.myManager
    //#output(void com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)): this.myParser
    //#post(void com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)): this.myManager == manager
    //#post(void com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)): init'ed(this.myManager)
    //#post(void com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)): this.myParser == parser
    //#post(void com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)): init'ed(this.myParser)
    //#ProcessPart.java:106: end of method: void com.dmdirc.parser.irc.ProcessPart.com.dmdirc.parser.irc.ProcessPart(IRCParser, ProcessingManager)

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