/* valasemanticanalyzer.c generated by valac, the Vala compiler
 * generated from valasemanticanalyzer.vala, do not modify */

/* valasemanticanalyzer.vala
 *
 * Copyright (C) 2006-2010  Jürg Billeter
 * Copyright (C) 2006-2008  Raffaele Sandrini
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 * Author:
 * 	Jürg Billeter <j@bitron.ch>
 *	Raffaele Sandrini <raffaele@sandrini.ch>
 */

#include <glib.h>
#include <glib-object.h>
#include "vala.h"
#include <valagee.h>
#include <stdlib.h>
#include <string.h>

#define _vala_code_context_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_context_unref (var), NULL)))
#define _vala_code_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_node_unref (var), NULL)))
#define _vala_source_file_unref0(var) ((var == NULL) ? NULL : (var = (vala_source_file_unref (var), NULL)))
#define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _vala_iterator_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterator_unref (var), NULL)))

struct _ValaSemanticAnalyzerPrivate {
	ValaCodeContext* _context;
	ValaSymbol* _current_symbol;
	ValaSourceFile* _current_source_file;
};


static gpointer vala_semantic_analyzer_parent_class = NULL;

#define VALA_SEMANTIC_ANALYZER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALA_TYPE_SEMANTIC_ANALYZER, ValaSemanticAnalyzerPrivate))
static void vala_semantic_analyzer_real_visit_source_file (ValaCodeVisitor* base, ValaSourceFile* file);
static gboolean vala_semantic_analyzer_check_argument (ValaSemanticAnalyzer* self, ValaExpression* arg, gint i, ValaParameterDirection direction);
static ValaDataType* vala_semantic_analyzer_get_instance_base_type (ValaDataType* instance_type, ValaDataType* base_type, ValaCodeNode* node_reference);
G_GNUC_INTERNAL ValaDataType* vala_semantic_analyzer_get_instance_base_type_for_member (ValaDataType* derived_instance_type, ValaTypeSymbol* type_symbol, ValaCodeNode* node_reference);
static ValaStruct* vala_semantic_analyzer_get_arithmetic_struct (ValaSemanticAnalyzer* self, ValaDataType* type);
static void vala_semantic_analyzer_finalize (ValaCodeVisitor * obj);


ValaSemanticAnalyzer* vala_semantic_analyzer_construct (GType object_type) {
	ValaSemanticAnalyzer* self = NULL;
	self = (ValaSemanticAnalyzer*) vala_code_visitor_construct (object_type);
	return self;
}


ValaSemanticAnalyzer* vala_semantic_analyzer_new (void) {
	return vala_semantic_analyzer_construct (VALA_TYPE_SEMANTIC_ANALYZER);
}


/**
 * Analyze and check code in the specified context.
 *
 * @param context a code context
 */
static gpointer _vala_code_node_ref0 (gpointer self) {
	return self ? vala_code_node_ref (self) : NULL;
}


void vala_semantic_analyzer_analyze (ValaSemanticAnalyzer* self, ValaCodeContext* context) {
	ValaCodeContext* _tmp0_;
	ValaCodeContext* _tmp1_;
	ValaNamespace* _tmp2_;
	ValaNamespace* _tmp3_;
	ValaSymbol* _tmp4_;
	ValaSymbol* _tmp5_;
	ValaScope* _tmp6_;
	ValaScope* _tmp7_;
	ValaSymbol* _tmp8_;
	ValaStruct* _tmp9_;
	ValaBooleanType* _tmp10_;
	ValaSymbol* _tmp11_;
	ValaScope* _tmp12_;
	ValaScope* _tmp13_;
	ValaSymbol* _tmp14_;
	ValaClass* _tmp15_;
	ValaObjectType* _tmp16_;
	ValaSymbol* _tmp17_;
	ValaScope* _tmp18_;
	ValaScope* _tmp19_;
	ValaSymbol* _tmp20_;
	ValaStruct* _tmp21_;
	ValaIntegerType* _tmp22_;
	ValaSymbol* _tmp23_;
	ValaScope* _tmp24_;
	ValaScope* _tmp25_;
	ValaSymbol* _tmp26_;
	ValaStruct* _tmp27_;
	ValaIntegerType* _tmp28_;
	ValaSymbol* _tmp29_;
	ValaScope* _tmp30_;
	ValaScope* _tmp31_;
	ValaSymbol* _tmp32_;
	ValaStruct* _tmp33_;
	ValaIntegerType* _tmp34_;
	ValaSymbol* _tmp35_;
	ValaScope* _tmp36_;
	ValaScope* _tmp37_;
	ValaSymbol* _tmp38_;
	ValaStruct* _tmp39_;
	ValaIntegerType* _tmp40_;
	ValaSymbol* _tmp41_;
	ValaScope* _tmp42_;
	ValaScope* _tmp43_;
	ValaSymbol* _tmp44_;
	ValaStruct* _tmp45_;
	ValaIntegerType* _tmp46_;
	ValaSymbol* _tmp47_;
	ValaScope* _tmp48_;
	ValaScope* _tmp49_;
	ValaSymbol* _tmp50_;
	ValaStruct* _tmp51_;
	ValaIntegerType* _tmp52_;
	ValaSymbol* _tmp53_;
	ValaScope* _tmp54_;
	ValaScope* _tmp55_;
	ValaSymbol* _tmp56_;
	ValaStruct* _tmp57_;
	ValaIntegerType* _tmp58_;
	ValaSymbol* _tmp59_;
	ValaScope* _tmp60_;
	ValaScope* _tmp61_;
	ValaSymbol* _tmp62_;
	ValaStruct* _tmp63_;
	ValaIntegerType* _tmp64_;
	ValaSymbol* _tmp65_;
	ValaScope* _tmp66_;
	ValaScope* _tmp67_;
	ValaSymbol* _tmp68_;
	ValaStruct* _tmp69_;
	ValaIntegerType* _tmp70_;
	ValaSymbol* _tmp71_;
	ValaScope* _tmp72_;
	ValaScope* _tmp73_;
	ValaSymbol* _tmp74_;
	ValaStruct* _tmp75_;
	ValaIntegerType* _tmp76_;
	ValaSymbol* _tmp77_;
	ValaScope* _tmp78_;
	ValaScope* _tmp79_;
	ValaSymbol* _tmp80_;
	ValaStruct* _tmp81_;
	ValaFloatingType* _tmp82_;
	ValaSymbol* _tmp83_;
	ValaScope* _tmp84_;
	ValaScope* _tmp85_;
	ValaSymbol* _tmp86_;
	ValaStruct* _tmp87_;
	ValaStructValueType* _tmp88_;
	ValaStruct* unichar_struct = NULL;
	ValaSymbol* _tmp89_;
	ValaScope* _tmp90_;
	ValaScope* _tmp91_;
	ValaSymbol* _tmp92_;
	ValaStruct* _tmp93_;
	ValaSymbol* glib_ns = NULL;
	ValaSymbol* _tmp96_;
	ValaScope* _tmp97_;
	ValaScope* _tmp98_;
	ValaSymbol* _tmp99_;
	ValaScope* _tmp100_;
	ValaScope* _tmp101_;
	ValaSymbol* _tmp102_;
	ValaScope* _tmp103_;
	ValaScope* _tmp104_;
	ValaSymbol* _tmp105_;
	ValaStruct* _tmp106_;
	ValaIntegerType* _tmp107_;
	ValaScope* _tmp108_;
	ValaScope* _tmp109_;
	ValaSymbol* _tmp110_;
	ValaStruct* _tmp111_;
	ValaStructValueType* _tmp112_;
	ValaScope* _tmp113_;
	ValaScope* _tmp114_;
	ValaSymbol* _tmp115_;
	ValaClass* _tmp116_;
	ValaObjectType* _tmp117_;
	ValaScope* _tmp118_;
	ValaScope* _tmp119_;
	ValaSymbol* _tmp120_;
	ValaClass* _tmp121_;
	ValaObjectType* _tmp122_;
	ValaScope* _tmp123_;
	ValaScope* _tmp124_;
	ValaSymbol* _tmp125_;
	ValaClass* _tmp126_;
	ValaObjectType* _tmp127_;
	ValaScope* _tmp128_;
	ValaScope* _tmp129_;
	ValaSymbol* _tmp130_;
	ValaClass* _tmp131_;
	ValaObjectType* _tmp132_;
	ValaScope* _tmp133_;
	ValaScope* _tmp134_;
	ValaSymbol* _tmp135_;
	ValaClass* _tmp136_;
	ValaObjectType* _tmp137_;
	ValaScope* _tmp138_;
	ValaScope* _tmp139_;
	ValaSymbol* _tmp140_;
	ValaSymbol* _tmp141_;
	ValaScope* _tmp142_;
	ValaScope* _tmp143_;
	ValaSymbol* _tmp144_;
	ValaSymbol* _tmp145_;
	ValaScope* _tmp146_;
	ValaScope* _tmp147_;
	ValaSymbol* _tmp148_;
	ValaClass* _tmp149_;
	ValaObjectType* _tmp150_;
	ValaScope* _tmp151_;
	ValaScope* _tmp152_;
	ValaSymbol* _tmp153_;
	ValaSymbol* _tmp154_;
	ValaCodeContext* _tmp155_;
	ValaNamespace* _tmp156_;
	ValaNamespace* _tmp157_;
	ValaCodeContext* _tmp158_;
	ValaCodeContext* _tmp159_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (context != NULL);
	_tmp0_ = context;
	vala_semantic_analyzer_set_context (self, _tmp0_);
	_tmp1_ = context;
	_tmp2_ = vala_code_context_get_root (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp3_);
	_vala_code_node_unref0 (self->root_symbol);
	self->root_symbol = _tmp4_;
	_tmp5_ = self->root_symbol;
	_tmp6_ = vala_symbol_get_scope (_tmp5_);
	_tmp7_ = _tmp6_;
	_tmp8_ = vala_scope_lookup (_tmp7_, "bool");
	_tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp10_ = vala_boolean_type_new (_tmp9_);
	_vala_code_node_unref0 (self->bool_type);
	self->bool_type = (ValaDataType*) _tmp10_;
	_vala_code_node_unref0 (_tmp9_);
	_tmp11_ = self->root_symbol;
	_tmp12_ = vala_symbol_get_scope (_tmp11_);
	_tmp13_ = _tmp12_;
	_tmp14_ = vala_scope_lookup (_tmp13_, "string");
	_tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, VALA_TYPE_CLASS, ValaClass);
	_tmp16_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp15_);
	_vala_code_node_unref0 (self->string_type);
	self->string_type = (ValaDataType*) _tmp16_;
	_vala_code_node_unref0 (_tmp15_);
	_tmp17_ = self->root_symbol;
	_tmp18_ = vala_symbol_get_scope (_tmp17_);
	_tmp19_ = _tmp18_;
	_tmp20_ = vala_scope_lookup (_tmp19_, "int");
	_tmp21_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp22_ = vala_integer_type_new (_tmp21_, NULL, NULL);
	_vala_code_node_unref0 (self->int_type);
	self->int_type = (ValaDataType*) _tmp22_;
	_vala_code_node_unref0 (_tmp21_);
	_tmp23_ = self->root_symbol;
	_tmp24_ = vala_symbol_get_scope (_tmp23_);
	_tmp25_ = _tmp24_;
	_tmp26_ = vala_scope_lookup (_tmp25_, "uint");
	_tmp27_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp28_ = vala_integer_type_new (_tmp27_, NULL, NULL);
	_vala_code_node_unref0 (self->uint_type);
	self->uint_type = (ValaDataType*) _tmp28_;
	_vala_code_node_unref0 (_tmp27_);
	_tmp29_ = self->root_symbol;
	_tmp30_ = vala_symbol_get_scope (_tmp29_);
	_tmp31_ = _tmp30_;
	_tmp32_ = vala_scope_lookup (_tmp31_, "uchar");
	_tmp33_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp34_ = vala_integer_type_new (_tmp33_, NULL, NULL);
	_vala_code_node_unref0 (self->uchar_type);
	self->uchar_type = (ValaDataType*) _tmp34_;
	_vala_code_node_unref0 (_tmp33_);
	_tmp35_ = self->root_symbol;
	_tmp36_ = vala_symbol_get_scope (_tmp35_);
	_tmp37_ = _tmp36_;
	_tmp38_ = vala_scope_lookup (_tmp37_, "int8");
	_tmp39_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp40_ = vala_integer_type_new (_tmp39_, NULL, NULL);
	_vala_code_node_unref0 (self->int8_type);
	self->int8_type = (ValaDataType*) _tmp40_;
	_vala_code_node_unref0 (_tmp39_);
	_tmp41_ = self->root_symbol;
	_tmp42_ = vala_symbol_get_scope (_tmp41_);
	_tmp43_ = _tmp42_;
	_tmp44_ = vala_scope_lookup (_tmp43_, "short");
	_tmp45_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp46_ = vala_integer_type_new (_tmp45_, NULL, NULL);
	_vala_code_node_unref0 (self->short_type);
	self->short_type = (ValaDataType*) _tmp46_;
	_vala_code_node_unref0 (_tmp45_);
	_tmp47_ = self->root_symbol;
	_tmp48_ = vala_symbol_get_scope (_tmp47_);
	_tmp49_ = _tmp48_;
	_tmp50_ = vala_scope_lookup (_tmp49_, "ushort");
	_tmp51_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp52_ = vala_integer_type_new (_tmp51_, NULL, NULL);
	_vala_code_node_unref0 (self->ushort_type);
	self->ushort_type = (ValaDataType*) _tmp52_;
	_vala_code_node_unref0 (_tmp51_);
	_tmp53_ = self->root_symbol;
	_tmp54_ = vala_symbol_get_scope (_tmp53_);
	_tmp55_ = _tmp54_;
	_tmp56_ = vala_scope_lookup (_tmp55_, "long");
	_tmp57_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp58_ = vala_integer_type_new (_tmp57_, NULL, NULL);
	_vala_code_node_unref0 (self->long_type);
	self->long_type = (ValaDataType*) _tmp58_;
	_vala_code_node_unref0 (_tmp57_);
	_tmp59_ = self->root_symbol;
	_tmp60_ = vala_symbol_get_scope (_tmp59_);
	_tmp61_ = _tmp60_;
	_tmp62_ = vala_scope_lookup (_tmp61_, "ulong");
	_tmp63_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp64_ = vala_integer_type_new (_tmp63_, NULL, NULL);
	_vala_code_node_unref0 (self->ulong_type);
	self->ulong_type = (ValaDataType*) _tmp64_;
	_vala_code_node_unref0 (_tmp63_);
	_tmp65_ = self->root_symbol;
	_tmp66_ = vala_symbol_get_scope (_tmp65_);
	_tmp67_ = _tmp66_;
	_tmp68_ = vala_scope_lookup (_tmp67_, "size_t");
	_tmp69_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp70_ = vala_integer_type_new (_tmp69_, NULL, NULL);
	_vala_code_node_unref0 (self->size_t_type);
	self->size_t_type = (ValaDataType*) _tmp70_;
	_vala_code_node_unref0 (_tmp69_);
	_tmp71_ = self->root_symbol;
	_tmp72_ = vala_symbol_get_scope (_tmp71_);
	_tmp73_ = _tmp72_;
	_tmp74_ = vala_scope_lookup (_tmp73_, "ssize_t");
	_tmp75_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp76_ = vala_integer_type_new (_tmp75_, NULL, NULL);
	_vala_code_node_unref0 (self->ssize_t_type);
	self->ssize_t_type = (ValaDataType*) _tmp76_;
	_vala_code_node_unref0 (_tmp75_);
	_tmp77_ = self->root_symbol;
	_tmp78_ = vala_symbol_get_scope (_tmp77_);
	_tmp79_ = _tmp78_;
	_tmp80_ = vala_scope_lookup (_tmp79_, "double");
	_tmp81_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp82_ = vala_floating_type_new (_tmp81_);
	_vala_code_node_unref0 (self->double_type);
	self->double_type = (ValaDataType*) _tmp82_;
	_vala_code_node_unref0 (_tmp81_);
	_tmp83_ = self->root_symbol;
	_tmp84_ = vala_symbol_get_scope (_tmp83_);
	_tmp85_ = _tmp84_;
	_tmp86_ = vala_scope_lookup (_tmp85_, "va_list");
	_tmp87_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp88_ = vala_struct_value_type_new (_tmp87_);
	_vala_code_node_unref0 (self->va_list_type);
	self->va_list_type = (ValaDataType*) _tmp88_;
	_vala_code_node_unref0 (_tmp87_);
	_tmp89_ = self->root_symbol;
	_tmp90_ = vala_symbol_get_scope (_tmp89_);
	_tmp91_ = _tmp90_;
	_tmp92_ = vala_scope_lookup (_tmp91_, "unichar");
	unichar_struct = G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp93_ = unichar_struct;
	if (_tmp93_ != NULL) {
		ValaStruct* _tmp94_;
		ValaIntegerType* _tmp95_;
		_tmp94_ = unichar_struct;
		_tmp95_ = vala_integer_type_new (_tmp94_, NULL, NULL);
		_vala_code_node_unref0 (self->unichar_type);
		self->unichar_type = (ValaDataType*) _tmp95_;
	}
	_tmp96_ = self->root_symbol;
	_tmp97_ = vala_symbol_get_scope (_tmp96_);
	_tmp98_ = _tmp97_;
	_tmp99_ = vala_scope_lookup (_tmp98_, "GLib");
	glib_ns = _tmp99_;
	_tmp100_ = vala_symbol_get_scope (glib_ns);
	_tmp101_ = _tmp100_;
	_tmp102_ = vala_scope_lookup (_tmp101_, "Object");
	_vala_code_node_unref0 (self->object_type);
	self->object_type = G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, VALA_TYPE_CLASS, ValaClass);
	_tmp103_ = vala_symbol_get_scope (glib_ns);
	_tmp104_ = _tmp103_;
	_tmp105_ = vala_scope_lookup (_tmp104_, "Type");
	_tmp106_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp107_ = vala_integer_type_new (_tmp106_, NULL, NULL);
	_vala_code_node_unref0 (self->type_type);
	self->type_type = (ValaDataType*) _tmp107_;
	_vala_code_node_unref0 (_tmp106_);
	_tmp108_ = vala_symbol_get_scope (glib_ns);
	_tmp109_ = _tmp108_;
	_tmp110_ = vala_scope_lookup (_tmp109_, "Value");
	_tmp111_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp112_ = vala_struct_value_type_new (_tmp111_);
	_vala_code_node_unref0 (self->gvalue_type);
	self->gvalue_type = _tmp112_;
	_vala_code_node_unref0 (_tmp111_);
	_tmp113_ = vala_symbol_get_scope (glib_ns);
	_tmp114_ = _tmp113_;
	_tmp115_ = vala_scope_lookup (_tmp114_, "Variant");
	_tmp116_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, VALA_TYPE_CLASS, ValaClass);
	_tmp117_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp116_);
	_vala_code_node_unref0 (self->gvariant_type);
	self->gvariant_type = _tmp117_;
	_vala_code_node_unref0 (_tmp116_);
	_tmp118_ = vala_symbol_get_scope (glib_ns);
	_tmp119_ = _tmp118_;
	_tmp120_ = vala_scope_lookup (_tmp119_, "List");
	_tmp121_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp120_, VALA_TYPE_CLASS, ValaClass);
	_tmp122_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp121_);
	_vala_code_node_unref0 (self->glist_type);
	self->glist_type = (ValaDataType*) _tmp122_;
	_vala_code_node_unref0 (_tmp121_);
	_tmp123_ = vala_symbol_get_scope (glib_ns);
	_tmp124_ = _tmp123_;
	_tmp125_ = vala_scope_lookup (_tmp124_, "SList");
	_tmp126_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp125_, VALA_TYPE_CLASS, ValaClass);
	_tmp127_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp126_);
	_vala_code_node_unref0 (self->gslist_type);
	self->gslist_type = (ValaDataType*) _tmp127_;
	_vala_code_node_unref0 (_tmp126_);
	_tmp128_ = vala_symbol_get_scope (glib_ns);
	_tmp129_ = _tmp128_;
	_tmp130_ = vala_scope_lookup (_tmp129_, "Array");
	_tmp131_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, VALA_TYPE_CLASS, ValaClass);
	_tmp132_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp131_);
	_vala_code_node_unref0 (self->garray_type);
	self->garray_type = (ValaDataType*) _tmp132_;
	_vala_code_node_unref0 (_tmp131_);
	_tmp133_ = vala_symbol_get_scope (glib_ns);
	_tmp134_ = _tmp133_;
	_tmp135_ = vala_scope_lookup (_tmp134_, "ValueArray");
	_tmp136_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp135_, VALA_TYPE_CLASS, ValaClass);
	_tmp137_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp136_);
	_vala_code_node_unref0 (self->gvaluearray_type);
	self->gvaluearray_type = (ValaDataType*) _tmp137_;
	_vala_code_node_unref0 (_tmp136_);
	_tmp138_ = vala_symbol_get_scope (glib_ns);
	_tmp139_ = _tmp138_;
	_tmp140_ = vala_scope_lookup (_tmp139_, "Error");
	_vala_code_node_unref0 (self->gerror_type);
	self->gerror_type = G_TYPE_CHECK_INSTANCE_CAST (_tmp140_, VALA_TYPE_CLASS, ValaClass);
	_tmp141_ = self->root_symbol;
	_tmp142_ = vala_symbol_get_scope (_tmp141_);
	_tmp143_ = _tmp142_;
	_tmp144_ = vala_scope_lookup (_tmp143_, "GLib");
	_tmp145_ = _tmp144_;
	_tmp146_ = vala_symbol_get_scope (_tmp145_);
	_tmp147_ = _tmp146_;
	_tmp148_ = vala_scope_lookup (_tmp147_, "Regex");
	_tmp149_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp148_, VALA_TYPE_CLASS, ValaClass);
	_tmp150_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp149_);
	_vala_code_node_unref0 (self->regex_type);
	self->regex_type = (ValaDataType*) _tmp150_;
	_vala_code_node_unref0 (_tmp149_);
	_vala_code_node_unref0 (_tmp145_);
	_tmp151_ = vala_symbol_get_scope (glib_ns);
	_tmp152_ = _tmp151_;
	_tmp153_ = vala_scope_lookup (_tmp152_, "Source");
	_vala_code_node_unref0 (self->gsource_type);
	self->gsource_type = G_TYPE_CHECK_INSTANCE_CAST (_tmp153_, VALA_TYPE_CLASS, ValaClass);
	_tmp154_ = self->root_symbol;
	vala_semantic_analyzer_set_current_symbol (self, _tmp154_);
	_tmp155_ = context;
	_tmp156_ = vala_code_context_get_root (_tmp155_);
	_tmp157_ = _tmp156_;
	_tmp158_ = context;
	vala_code_node_check ((ValaCodeNode*) _tmp157_, _tmp158_);
	_tmp159_ = context;
	vala_code_context_accept (_tmp159_, (ValaCodeVisitor*) self);
	_vala_code_node_unref0 (glib_ns);
	_vala_code_node_unref0 (unichar_struct);
}


static void vala_semantic_analyzer_real_visit_source_file (ValaCodeVisitor* base, ValaSourceFile* file) {
	ValaSemanticAnalyzer * self;
	ValaSourceFile* _tmp0_;
	ValaSourceFile* _tmp1_;
	ValaCodeContext* _tmp2_;
	self = (ValaSemanticAnalyzer*) base;
	g_return_if_fail (file != NULL);
	_tmp0_ = file;
	vala_semantic_analyzer_set_current_source_file (self, _tmp0_);
	_tmp1_ = file;
	_tmp2_ = self->priv->_context;
	vala_source_file_check (_tmp1_, _tmp2_);
}


gboolean vala_semantic_analyzer_is_type_accessible (ValaSemanticAnalyzer* self, ValaSymbol* sym, ValaDataType* type) {
	gboolean result = FALSE;
	ValaDataType* _tmp0_;
	ValaSymbol* _tmp1_;
	gboolean _tmp2_;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (sym != NULL, FALSE);
	g_return_val_if_fail (type != NULL, FALSE);
	_tmp0_ = type;
	_tmp1_ = sym;
	_tmp2_ = vala_data_type_is_accessible (_tmp0_, _tmp1_);
	result = _tmp2_;
	return result;
}


ValaDataType* vala_semantic_analyzer_get_value_type_for_symbol (ValaSemanticAnalyzer* self, ValaSymbol* sym, gboolean lvalue) {
	ValaDataType* result = NULL;
	ValaSymbol* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (sym != NULL, NULL);
	_tmp0_ = sym;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_FIELD)) {
		ValaField* f = NULL;
		ValaSymbol* _tmp1_;
		ValaField* _tmp2_;
		ValaDataType* type = NULL;
		ValaField* _tmp3_;
		ValaDataType* _tmp4_;
		ValaDataType* _tmp5_;
		ValaDataType* _tmp6_;
		gboolean _tmp7_;
		_tmp1_ = sym;
		_tmp2_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALA_TYPE_FIELD, ValaField));
		f = _tmp2_;
		_tmp3_ = f;
		_tmp4_ = vala_variable_get_variable_type ((ValaVariable*) _tmp3_);
		_tmp5_ = _tmp4_;
		_tmp6_ = vala_data_type_copy (_tmp5_);
		type = _tmp6_;
		_tmp7_ = lvalue;
		if (!_tmp7_) {
			ValaDataType* _tmp8_;
			_tmp8_ = type;
			vala_data_type_set_value_owned (_tmp8_, FALSE);
		}
		result = type;
		_vala_code_node_unref0 (f);
		return result;
	} else {
		ValaSymbol* _tmp9_;
		_tmp9_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, VALA_TYPE_ENUM_VALUE)) {
			ValaSymbol* _tmp10_;
			ValaSymbol* _tmp11_;
			ValaSymbol* _tmp12_;
			ValaEnumValueType* _tmp13_;
			_tmp10_ = sym;
			_tmp11_ = vala_symbol_get_parent_symbol (_tmp10_);
			_tmp12_ = _tmp11_;
			_tmp13_ = vala_enum_value_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, VALA_TYPE_ENUM, ValaEnum));
			result = (ValaDataType*) _tmp13_;
			return result;
		} else {
			ValaSymbol* _tmp14_;
			_tmp14_ = sym;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, VALA_TYPE_CONSTANT)) {
				ValaConstant* c = NULL;
				ValaSymbol* _tmp15_;
				ValaConstant* _tmp16_;
				ValaConstant* _tmp17_;
				ValaDataType* _tmp18_;
				ValaDataType* _tmp19_;
				ValaDataType* _tmp20_;
				_tmp15_ = sym;
				_tmp16_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, VALA_TYPE_CONSTANT, ValaConstant));
				c = _tmp16_;
				_tmp17_ = c;
				_tmp18_ = vala_constant_get_type_reference (_tmp17_);
				_tmp19_ = _tmp18_;
				_tmp20_ = _vala_code_node_ref0 (_tmp19_);
				result = _tmp20_;
				_vala_code_node_unref0 (c);
				return result;
			} else {
				ValaSymbol* _tmp21_;
				_tmp21_ = sym;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, VALA_TYPE_PROPERTY)) {
					ValaProperty* prop = NULL;
					ValaSymbol* _tmp22_;
					ValaProperty* _tmp23_;
					gboolean _tmp24_;
					_tmp22_ = sym;
					_tmp23_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, VALA_TYPE_PROPERTY, ValaProperty));
					prop = _tmp23_;
					_tmp24_ = lvalue;
					if (_tmp24_) {
						gboolean _tmp25_ = FALSE;
						ValaProperty* _tmp26_;
						ValaPropertyAccessor* _tmp27_;
						ValaPropertyAccessor* _tmp28_;
						_tmp26_ = prop;
						_tmp27_ = vala_property_get_set_accessor (_tmp26_);
						_tmp28_ = _tmp27_;
						if (_tmp28_ != NULL) {
							ValaProperty* _tmp29_;
							ValaPropertyAccessor* _tmp30_;
							ValaPropertyAccessor* _tmp31_;
							ValaDataType* _tmp32_;
							ValaDataType* _tmp33_;
							_tmp29_ = prop;
							_tmp30_ = vala_property_get_set_accessor (_tmp29_);
							_tmp31_ = _tmp30_;
							_tmp32_ = vala_property_accessor_get_value_type (_tmp31_);
							_tmp33_ = _tmp32_;
							_tmp25_ = _tmp33_ != NULL;
						} else {
							_tmp25_ = FALSE;
						}
						if (_tmp25_) {
							ValaProperty* _tmp34_;
							ValaPropertyAccessor* _tmp35_;
							ValaPropertyAccessor* _tmp36_;
							ValaDataType* _tmp37_;
							ValaDataType* _tmp38_;
							ValaDataType* _tmp39_;
							_tmp34_ = prop;
							_tmp35_ = vala_property_get_set_accessor (_tmp34_);
							_tmp36_ = _tmp35_;
							_tmp37_ = vala_property_accessor_get_value_type (_tmp36_);
							_tmp38_ = _tmp37_;
							_tmp39_ = vala_data_type_copy (_tmp38_);
							result = _tmp39_;
							_vala_code_node_unref0 (prop);
							return result;
						}
					} else {
						gboolean _tmp40_ = FALSE;
						ValaProperty* _tmp41_;
						ValaPropertyAccessor* _tmp42_;
						ValaPropertyAccessor* _tmp43_;
						_tmp41_ = prop;
						_tmp42_ = vala_property_get_get_accessor (_tmp41_);
						_tmp43_ = _tmp42_;
						if (_tmp43_ != NULL) {
							ValaProperty* _tmp44_;
							ValaPropertyAccessor* _tmp45_;
							ValaPropertyAccessor* _tmp46_;
							ValaDataType* _tmp47_;
							ValaDataType* _tmp48_;
							_tmp44_ = prop;
							_tmp45_ = vala_property_get_get_accessor (_tmp44_);
							_tmp46_ = _tmp45_;
							_tmp47_ = vala_property_accessor_get_value_type (_tmp46_);
							_tmp48_ = _tmp47_;
							_tmp40_ = _tmp48_ != NULL;
						} else {
							_tmp40_ = FALSE;
						}
						if (_tmp40_) {
							ValaProperty* _tmp49_;
							ValaPropertyAccessor* _tmp50_;
							ValaPropertyAccessor* _tmp51_;
							ValaDataType* _tmp52_;
							ValaDataType* _tmp53_;
							ValaDataType* _tmp54_;
							_tmp49_ = prop;
							_tmp50_ = vala_property_get_get_accessor (_tmp49_);
							_tmp51_ = _tmp50_;
							_tmp52_ = vala_property_accessor_get_value_type (_tmp51_);
							_tmp53_ = _tmp52_;
							_tmp54_ = vala_data_type_copy (_tmp53_);
							result = _tmp54_;
							_vala_code_node_unref0 (prop);
							return result;
						}
					}
					_vala_code_node_unref0 (prop);
				} else {
					ValaSymbol* _tmp55_;
					_tmp55_ = sym;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp55_, VALA_TYPE_PARAMETER)) {
						ValaParameter* p = NULL;
						ValaSymbol* _tmp56_;
						ValaParameter* _tmp57_;
						ValaDataType* type = NULL;
						ValaParameter* _tmp58_;
						ValaDataType* _tmp59_;
						ValaDataType* _tmp60_;
						ValaDataType* _tmp61_;
						gboolean _tmp62_;
						_tmp56_ = sym;
						_tmp57_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, VALA_TYPE_PARAMETER, ValaParameter));
						p = _tmp57_;
						_tmp58_ = p;
						_tmp59_ = vala_variable_get_variable_type ((ValaVariable*) _tmp58_);
						_tmp60_ = _tmp59_;
						_tmp61_ = vala_data_type_copy (_tmp60_);
						type = _tmp61_;
						_tmp62_ = lvalue;
						if (!_tmp62_) {
							ValaDataType* _tmp63_;
							_tmp63_ = type;
							vala_data_type_set_value_owned (_tmp63_, FALSE);
						}
						result = type;
						_vala_code_node_unref0 (p);
						return result;
					} else {
						ValaSymbol* _tmp64_;
						_tmp64_ = sym;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp64_, VALA_TYPE_LOCAL_VARIABLE)) {
							ValaLocalVariable* local = NULL;
							ValaSymbol* _tmp65_;
							ValaLocalVariable* _tmp66_;
							ValaDataType* type = NULL;
							ValaLocalVariable* _tmp67_;
							ValaDataType* _tmp68_;
							ValaDataType* _tmp69_;
							ValaDataType* _tmp70_;
							gboolean _tmp71_;
							_tmp65_ = sym;
							_tmp66_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, VALA_TYPE_LOCAL_VARIABLE, ValaLocalVariable));
							local = _tmp66_;
							_tmp67_ = local;
							_tmp68_ = vala_variable_get_variable_type ((ValaVariable*) _tmp67_);
							_tmp69_ = _tmp68_;
							_tmp70_ = vala_data_type_copy (_tmp69_);
							type = _tmp70_;
							_tmp71_ = lvalue;
							if (!_tmp71_) {
								ValaDataType* _tmp72_;
								_tmp72_ = type;
								vala_data_type_set_value_owned (_tmp72_, FALSE);
							}
							result = type;
							_vala_code_node_unref0 (local);
							return result;
						} else {
							ValaSymbol* _tmp73_;
							_tmp73_ = sym;
							if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp73_, VALA_TYPE_METHOD)) {
								ValaSymbol* _tmp74_;
								ValaMethodType* _tmp75_;
								_tmp74_ = sym;
								_tmp75_ = vala_method_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, VALA_TYPE_METHOD, ValaMethod));
								result = (ValaDataType*) _tmp75_;
								return result;
							} else {
								ValaSymbol* _tmp76_;
								_tmp76_ = sym;
								if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp76_, VALA_TYPE_SIGNAL)) {
									ValaSymbol* _tmp77_;
									ValaSignalType* _tmp78_;
									_tmp77_ = sym;
									_tmp78_ = vala_signal_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, VALA_TYPE_SIGNAL, ValaSignal));
									result = (ValaDataType*) _tmp78_;
									return result;
								}
							}
						}
					}
				}
			}
		}
	}
	result = NULL;
	return result;
}


ValaSymbol* vala_semantic_analyzer_symbol_lookup_inherited (ValaSymbol* sym, const gchar* name) {
	ValaSymbol* result = NULL;
	ValaSymbol* _result_ = NULL;
	ValaSymbol* _tmp0_;
	ValaScope* _tmp1_;
	ValaScope* _tmp2_;
	const gchar* _tmp3_;
	ValaSymbol* _tmp4_;
	ValaSymbol* _tmp5_;
	ValaSymbol* _tmp6_;
	g_return_val_if_fail (sym != NULL, NULL);
	g_return_val_if_fail (name != NULL, NULL);
	_tmp0_ = sym;
	_tmp1_ = vala_symbol_get_scope (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = name;
	_tmp4_ = vala_scope_lookup (_tmp2_, _tmp3_);
	_result_ = _tmp4_;
	_tmp5_ = _result_;
	if (_tmp5_ != NULL) {
		result = _result_;
		return result;
	}
	_tmp6_ = sym;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, VALA_TYPE_CLASS)) {
		ValaClass* cl = NULL;
		ValaSymbol* _tmp7_;
		ValaClass* _tmp8_;
		ValaClass* _tmp31_;
		ValaClass* _tmp32_;
		ValaClass* _tmp33_;
		_tmp7_ = sym;
		_tmp8_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, VALA_TYPE_CLASS, ValaClass));
		cl = _tmp8_;
		{
			ValaList* _base_type_list = NULL;
			ValaClass* _tmp9_;
			ValaList* _tmp10_;
			gint _base_type_size = 0;
			ValaList* _tmp11_;
			gint _tmp12_;
			gint _tmp13_;
			gint _base_type_index = 0;
			_tmp9_ = cl;
			_tmp10_ = vala_class_get_base_types (_tmp9_);
			_base_type_list = _tmp10_;
			_tmp11_ = _base_type_list;
			_tmp12_ = vala_collection_get_size ((ValaCollection*) _tmp11_);
			_tmp13_ = _tmp12_;
			_base_type_size = _tmp13_;
			_base_type_index = -1;
			while (TRUE) {
				gint _tmp14_;
				gint _tmp15_;
				gint _tmp16_;
				ValaDataType* base_type = NULL;
				ValaList* _tmp17_;
				gint _tmp18_;
				gpointer _tmp19_;
				ValaDataType* _tmp20_;
				ValaTypeSymbol* _tmp21_;
				ValaTypeSymbol* _tmp22_;
				_tmp14_ = _base_type_index;
				_base_type_index = _tmp14_ + 1;
				_tmp15_ = _base_type_index;
				_tmp16_ = _base_type_size;
				if (!(_tmp15_ < _tmp16_)) {
					break;
				}
				_tmp17_ = _base_type_list;
				_tmp18_ = _base_type_index;
				_tmp19_ = vala_list_get (_tmp17_, _tmp18_);
				base_type = (ValaDataType*) _tmp19_;
				_tmp20_ = base_type;
				_tmp21_ = vala_data_type_get_data_type (_tmp20_);
				_tmp22_ = _tmp21_;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, VALA_TYPE_INTERFACE)) {
					ValaDataType* _tmp23_;
					ValaTypeSymbol* _tmp24_;
					ValaTypeSymbol* _tmp25_;
					ValaScope* _tmp26_;
					ValaScope* _tmp27_;
					const gchar* _tmp28_;
					ValaSymbol* _tmp29_;
					ValaSymbol* _tmp30_;
					_tmp23_ = base_type;
					_tmp24_ = vala_data_type_get_data_type (_tmp23_);
					_tmp25_ = _tmp24_;
					_tmp26_ = vala_symbol_get_scope ((ValaSymbol*) _tmp25_);
					_tmp27_ = _tmp26_;
					_tmp28_ = name;
					_tmp29_ = vala_scope_lookup (_tmp27_, _tmp28_);
					_vala_code_node_unref0 (_result_);
					_result_ = _tmp29_;
					_tmp30_ = _result_;
					if (_tmp30_ != NULL) {
						result = _result_;
						_vala_code_node_unref0 (base_type);
						_vala_iterable_unref0 (_base_type_list);
						_vala_code_node_unref0 (cl);
						return result;
					}
				}
				_vala_code_node_unref0 (base_type);
			}
			_vala_iterable_unref0 (_base_type_list);
		}
		_tmp31_ = cl;
		_tmp32_ = vala_class_get_base_class (_tmp31_);
		_tmp33_ = _tmp32_;
		if (_tmp33_ != NULL) {
			ValaClass* _tmp34_;
			ValaClass* _tmp35_;
			ValaClass* _tmp36_;
			const gchar* _tmp37_;
			ValaSymbol* _tmp38_;
			_tmp34_ = cl;
			_tmp35_ = vala_class_get_base_class (_tmp34_);
			_tmp36_ = _tmp35_;
			_tmp37_ = name;
			_tmp38_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp36_, _tmp37_);
			result = _tmp38_;
			_vala_code_node_unref0 (cl);
			_vala_code_node_unref0 (_result_);
			return result;
		}
		_vala_code_node_unref0 (cl);
	} else {
		ValaSymbol* _tmp39_;
		_tmp39_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp39_, VALA_TYPE_STRUCT)) {
			ValaStruct* st = NULL;
			ValaSymbol* _tmp40_;
			ValaStruct* _tmp41_;
			ValaStruct* _tmp42_;
			ValaDataType* _tmp43_;
			ValaDataType* _tmp44_;
			_tmp40_ = sym;
			_tmp41_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, VALA_TYPE_STRUCT, ValaStruct));
			st = _tmp41_;
			_tmp42_ = st;
			_tmp43_ = vala_struct_get_base_type (_tmp42_);
			_tmp44_ = _tmp43_;
			if (_tmp44_ != NULL) {
				ValaStruct* _tmp45_;
				ValaDataType* _tmp46_;
				ValaDataType* _tmp47_;
				ValaTypeSymbol* _tmp48_;
				ValaTypeSymbol* _tmp49_;
				const gchar* _tmp50_;
				ValaSymbol* _tmp51_;
				ValaSymbol* _tmp52_;
				_tmp45_ = st;
				_tmp46_ = vala_struct_get_base_type (_tmp45_);
				_tmp47_ = _tmp46_;
				_tmp48_ = vala_data_type_get_data_type (_tmp47_);
				_tmp49_ = _tmp48_;
				_tmp50_ = name;
				_tmp51_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp49_, _tmp50_);
				_vala_code_node_unref0 (_result_);
				_result_ = _tmp51_;
				_tmp52_ = _result_;
				if (_tmp52_ != NULL) {
					result = _result_;
					_vala_code_node_unref0 (st);
					return result;
				}
			}
			_vala_code_node_unref0 (st);
		} else {
			ValaSymbol* _tmp53_;
			_tmp53_ = sym;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp53_, VALA_TYPE_INTERFACE)) {
				ValaInterface* iface = NULL;
				ValaSymbol* _tmp54_;
				ValaInterface* _tmp55_;
				_tmp54_ = sym;
				_tmp55_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, VALA_TYPE_INTERFACE, ValaInterface));
				iface = _tmp55_;
				{
					ValaList* _prerequisite_list = NULL;
					ValaInterface* _tmp56_;
					ValaList* _tmp57_;
					gint _prerequisite_size = 0;
					ValaList* _tmp58_;
					gint _tmp59_;
					gint _tmp60_;
					gint _prerequisite_index = 0;
					_tmp56_ = iface;
					_tmp57_ = vala_interface_get_prerequisites (_tmp56_);
					_prerequisite_list = _tmp57_;
					_tmp58_ = _prerequisite_list;
					_tmp59_ = vala_collection_get_size ((ValaCollection*) _tmp58_);
					_tmp60_ = _tmp59_;
					_prerequisite_size = _tmp60_;
					_prerequisite_index = -1;
					while (TRUE) {
						gint _tmp61_;
						gint _tmp62_;
						gint _tmp63_;
						ValaDataType* prerequisite = NULL;
						ValaList* _tmp64_;
						gint _tmp65_;
						gpointer _tmp66_;
						ValaDataType* _tmp67_;
						ValaTypeSymbol* _tmp68_;
						ValaTypeSymbol* _tmp69_;
						_tmp61_ = _prerequisite_index;
						_prerequisite_index = _tmp61_ + 1;
						_tmp62_ = _prerequisite_index;
						_tmp63_ = _prerequisite_size;
						if (!(_tmp62_ < _tmp63_)) {
							break;
						}
						_tmp64_ = _prerequisite_list;
						_tmp65_ = _prerequisite_index;
						_tmp66_ = vala_list_get (_tmp64_, _tmp65_);
						prerequisite = (ValaDataType*) _tmp66_;
						_tmp67_ = prerequisite;
						_tmp68_ = vala_data_type_get_data_type (_tmp67_);
						_tmp69_ = _tmp68_;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp69_, VALA_TYPE_INTERFACE)) {
							ValaDataType* _tmp70_;
							ValaTypeSymbol* _tmp71_;
							ValaTypeSymbol* _tmp72_;
							const gchar* _tmp73_;
							ValaSymbol* _tmp74_;
							ValaSymbol* _tmp75_;
							_tmp70_ = prerequisite;
							_tmp71_ = vala_data_type_get_data_type (_tmp70_);
							_tmp72_ = _tmp71_;
							_tmp73_ = name;
							_tmp74_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp72_, _tmp73_);
							_vala_code_node_unref0 (_result_);
							_result_ = _tmp74_;
							_tmp75_ = _result_;
							if (_tmp75_ != NULL) {
								result = _result_;
								_vala_code_node_unref0 (prerequisite);
								_vala_iterable_unref0 (_prerequisite_list);
								_vala_code_node_unref0 (iface);
								return result;
							}
						}
						_vala_code_node_unref0 (prerequisite);
					}
					_vala_iterable_unref0 (_prerequisite_list);
				}
				{
					ValaList* _prerequisite_list = NULL;
					ValaInterface* _tmp76_;
					ValaList* _tmp77_;
					gint _prerequisite_size = 0;
					ValaList* _tmp78_;
					gint _tmp79_;
					gint _tmp80_;
					gint _prerequisite_index = 0;
					_tmp76_ = iface;
					_tmp77_ = vala_interface_get_prerequisites (_tmp76_);
					_prerequisite_list = _tmp77_;
					_tmp78_ = _prerequisite_list;
					_tmp79_ = vala_collection_get_size ((ValaCollection*) _tmp78_);
					_tmp80_ = _tmp79_;
					_prerequisite_size = _tmp80_;
					_prerequisite_index = -1;
					while (TRUE) {
						gint _tmp81_;
						gint _tmp82_;
						gint _tmp83_;
						ValaDataType* prerequisite = NULL;
						ValaList* _tmp84_;
						gint _tmp85_;
						gpointer _tmp86_;
						ValaDataType* _tmp87_;
						ValaTypeSymbol* _tmp88_;
						ValaTypeSymbol* _tmp89_;
						_tmp81_ = _prerequisite_index;
						_prerequisite_index = _tmp81_ + 1;
						_tmp82_ = _prerequisite_index;
						_tmp83_ = _prerequisite_size;
						if (!(_tmp82_ < _tmp83_)) {
							break;
						}
						_tmp84_ = _prerequisite_list;
						_tmp85_ = _prerequisite_index;
						_tmp86_ = vala_list_get (_tmp84_, _tmp85_);
						prerequisite = (ValaDataType*) _tmp86_;
						_tmp87_ = prerequisite;
						_tmp88_ = vala_data_type_get_data_type (_tmp87_);
						_tmp89_ = _tmp88_;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp89_, VALA_TYPE_CLASS)) {
							ValaDataType* _tmp90_;
							ValaTypeSymbol* _tmp91_;
							ValaTypeSymbol* _tmp92_;
							const gchar* _tmp93_;
							ValaSymbol* _tmp94_;
							ValaSymbol* _tmp95_;
							_tmp90_ = prerequisite;
							_tmp91_ = vala_data_type_get_data_type (_tmp90_);
							_tmp92_ = _tmp91_;
							_tmp93_ = name;
							_tmp94_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp92_, _tmp93_);
							_vala_code_node_unref0 (_result_);
							_result_ = _tmp94_;
							_tmp95_ = _result_;
							if (_tmp95_ != NULL) {
								result = _result_;
								_vala_code_node_unref0 (prerequisite);
								_vala_iterable_unref0 (_prerequisite_list);
								_vala_code_node_unref0 (iface);
								return result;
							}
						}
						_vala_code_node_unref0 (prerequisite);
					}
					_vala_iterable_unref0 (_prerequisite_list);
				}
				_vala_code_node_unref0 (iface);
			}
		}
	}
	result = NULL;
	_vala_code_node_unref0 (_result_);
	return result;
}


static gpointer _vala_iterable_ref0 (gpointer self) {
	return self ? vala_iterable_ref (self) : NULL;
}


ValaDataType* vala_semantic_analyzer_get_data_type_for_symbol (ValaTypeSymbol* sym) {
	ValaDataType* result = NULL;
	ValaDataType* type = NULL;
	ValaList* type_parameters = NULL;
	ValaTypeSymbol* _tmp0_;
	ValaList* _tmp42_;
	g_return_val_if_fail (sym != NULL, NULL);
	type = NULL;
	type_parameters = NULL;
	_tmp0_ = sym;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_OBJECT_TYPE_SYMBOL)) {
		ValaTypeSymbol* _tmp1_;
		ValaObjectType* _tmp2_;
		ValaTypeSymbol* _tmp3_;
		ValaList* _tmp4_;
		_tmp1_ = sym;
		_tmp2_ = vala_object_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALA_TYPE_OBJECT_TYPE_SYMBOL, ValaObjectTypeSymbol));
		_vala_code_node_unref0 (type);
		type = (ValaDataType*) _tmp2_;
		_tmp3_ = sym;
		_tmp4_ = vala_object_type_symbol_get_type_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, VALA_TYPE_OBJECT_TYPE_SYMBOL, ValaObjectTypeSymbol));
		_vala_iterable_unref0 (type_parameters);
		type_parameters = _tmp4_;
	} else {
		ValaTypeSymbol* _tmp5_;
		_tmp5_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALA_TYPE_STRUCT)) {
			ValaStruct* st = NULL;
			ValaTypeSymbol* _tmp6_;
			ValaStruct* _tmp7_;
			ValaStruct* _tmp8_;
			gboolean _tmp9_;
			ValaStruct* _tmp22_;
			ValaList* _tmp23_;
			_tmp6_ = sym;
			_tmp7_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, VALA_TYPE_STRUCT, ValaStruct));
			st = _tmp7_;
			_tmp8_ = st;
			_tmp9_ = vala_struct_is_boolean_type (_tmp8_);
			if (_tmp9_) {
				ValaStruct* _tmp10_;
				ValaBooleanType* _tmp11_;
				_tmp10_ = st;
				_tmp11_ = vala_boolean_type_new (_tmp10_);
				_vala_code_node_unref0 (type);
				type = (ValaDataType*) _tmp11_;
			} else {
				ValaStruct* _tmp12_;
				gboolean _tmp13_;
				_tmp12_ = st;
				_tmp13_ = vala_struct_is_integer_type (_tmp12_);
				if (_tmp13_) {
					ValaStruct* _tmp14_;
					ValaIntegerType* _tmp15_;
					_tmp14_ = st;
					_tmp15_ = vala_integer_type_new (_tmp14_, NULL, NULL);
					_vala_code_node_unref0 (type);
					type = (ValaDataType*) _tmp15_;
				} else {
					ValaStruct* _tmp16_;
					gboolean _tmp17_;
					_tmp16_ = st;
					_tmp17_ = vala_struct_is_floating_type (_tmp16_);
					if (_tmp17_) {
						ValaStruct* _tmp18_;
						ValaFloatingType* _tmp19_;
						_tmp18_ = st;
						_tmp19_ = vala_floating_type_new (_tmp18_);
						_vala_code_node_unref0 (type);
						type = (ValaDataType*) _tmp19_;
					} else {
						ValaStruct* _tmp20_;
						ValaStructValueType* _tmp21_;
						_tmp20_ = st;
						_tmp21_ = vala_struct_value_type_new (_tmp20_);
						_vala_code_node_unref0 (type);
						type = (ValaDataType*) _tmp21_;
					}
				}
			}
			_tmp22_ = st;
			_tmp23_ = vala_struct_get_type_parameters (_tmp22_);
			_vala_iterable_unref0 (type_parameters);
			type_parameters = _tmp23_;
			_vala_code_node_unref0 (st);
		} else {
			ValaTypeSymbol* _tmp24_;
			_tmp24_ = sym;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, VALA_TYPE_ENUM)) {
				ValaTypeSymbol* _tmp25_;
				ValaEnumValueType* _tmp26_;
				_tmp25_ = sym;
				_tmp26_ = vala_enum_value_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, VALA_TYPE_ENUM, ValaEnum));
				_vala_code_node_unref0 (type);
				type = (ValaDataType*) _tmp26_;
			} else {
				ValaTypeSymbol* _tmp27_;
				_tmp27_ = sym;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, VALA_TYPE_ERROR_DOMAIN)) {
					ValaTypeSymbol* _tmp28_;
					ValaErrorType* _tmp29_;
					_tmp28_ = sym;
					_tmp29_ = vala_error_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, VALA_TYPE_ERROR_DOMAIN, ValaErrorDomain), NULL, NULL);
					_vala_code_node_unref0 (type);
					type = (ValaDataType*) _tmp29_;
				} else {
					ValaTypeSymbol* _tmp30_;
					_tmp30_ = sym;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, VALA_TYPE_ERROR_CODE)) {
						ValaTypeSymbol* _tmp31_;
						ValaSymbol* _tmp32_;
						ValaSymbol* _tmp33_;
						ValaTypeSymbol* _tmp34_;
						ValaErrorType* _tmp35_;
						_tmp31_ = sym;
						_tmp32_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp31_);
						_tmp33_ = _tmp32_;
						_tmp34_ = sym;
						_tmp35_ = vala_error_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, VALA_TYPE_ERROR_DOMAIN, ValaErrorDomain), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, VALA_TYPE_ERROR_CODE, ValaErrorCode), NULL);
						_vala_code_node_unref0 (type);
						type = (ValaDataType*) _tmp35_;
					} else {
						ValaTypeSymbol* _tmp36_;
						gchar* _tmp37_;
						gchar* _tmp38_;
						gchar* _tmp39_;
						gchar* _tmp40_;
						ValaInvalidType* _tmp41_;
						_tmp36_ = sym;
						_tmp37_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp36_);
						_tmp38_ = _tmp37_;
						_tmp39_ = g_strdup_printf ("internal error: `%s' is not a supported type", _tmp38_);
						_tmp40_ = _tmp39_;
						vala_report_error (NULL, _tmp40_);
						_g_free0 (_tmp40_);
						_g_free0 (_tmp38_);
						_tmp41_ = vala_invalid_type_new ();
						result = (ValaDataType*) _tmp41_;
						_vala_iterable_unref0 (type_parameters);
						_vala_code_node_unref0 (type);
						return result;
					}
				}
			}
		}
	}
	_tmp42_ = type_parameters;
	if (_tmp42_ != NULL) {
		{
			ValaList* _type_param_list = NULL;
			ValaList* _tmp43_;
			ValaList* _tmp44_;
			gint _type_param_size = 0;
			ValaList* _tmp45_;
			gint _tmp46_;
			gint _tmp47_;
			gint _type_param_index = 0;
			_tmp43_ = type_parameters;
			_tmp44_ = _vala_iterable_ref0 (_tmp43_);
			_type_param_list = _tmp44_;
			_tmp45_ = _type_param_list;
			_tmp46_ = vala_collection_get_size ((ValaCollection*) _tmp45_);
			_tmp47_ = _tmp46_;
			_type_param_size = _tmp47_;
			_type_param_index = -1;
			while (TRUE) {
				gint _tmp48_;
				gint _tmp49_;
				gint _tmp50_;
				ValaTypeParameter* type_param = NULL;
				ValaList* _tmp51_;
				gint _tmp52_;
				gpointer _tmp53_;
				ValaGenericType* type_arg = NULL;
				ValaTypeParameter* _tmp54_;
				ValaGenericType* _tmp55_;
				ValaGenericType* _tmp56_;
				ValaDataType* _tmp57_;
				ValaGenericType* _tmp58_;
				_tmp48_ = _type_param_index;
				_type_param_index = _tmp48_ + 1;
				_tmp49_ = _type_param_index;
				_tmp50_ = _type_param_size;
				if (!(_tmp49_ < _tmp50_)) {
					break;
				}
				_tmp51_ = _type_param_list;
				_tmp52_ = _type_param_index;
				_tmp53_ = vala_list_get (_tmp51_, _tmp52_);
				type_param = (ValaTypeParameter*) _tmp53_;
				_tmp54_ = type_param;
				_tmp55_ = vala_generic_type_new (_tmp54_);
				type_arg = _tmp55_;
				_tmp56_ = type_arg;
				vala_data_type_set_value_owned ((ValaDataType*) _tmp56_, TRUE);
				_tmp57_ = type;
				_tmp58_ = type_arg;
				vala_data_type_add_type_argument (_tmp57_, (ValaDataType*) _tmp58_);
				_vala_code_node_unref0 (type_arg);
				_vala_code_node_unref0 (type_param);
			}
			_vala_iterable_unref0 (_type_param_list);
		}
	}
	result = type;
	_vala_iterable_unref0 (type_parameters);
	return result;
}


ValaSymbol* vala_semantic_analyzer_get_symbol_for_data_type (ValaDataType* type) {
	ValaSymbol* result = NULL;
	ValaSymbol* sym = NULL;
	ValaDataType* _tmp0_;
	g_return_val_if_fail (type != NULL, NULL);
	sym = NULL;
	_tmp0_ = type;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_OBJECT_TYPE)) {
		ValaDataType* _tmp1_;
		ValaObjectTypeSymbol* _tmp2_;
		ValaObjectTypeSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		_tmp1_ = type;
		_tmp2_ = vala_object_type_get_type_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALA_TYPE_OBJECT_TYPE, ValaObjectType));
		_tmp3_ = _tmp2_;
		_tmp4_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp3_);
		_vala_code_node_unref0 (sym);
		sym = _tmp4_;
	} else {
		ValaDataType* _tmp5_;
		_tmp5_ = type;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALA_TYPE_CLASS_TYPE)) {
			ValaDataType* _tmp6_;
			ValaClass* _tmp7_;
			ValaClass* _tmp8_;
			ValaSymbol* _tmp9_;
			_tmp6_ = type;
			_tmp7_ = vala_class_type_get_class_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, VALA_TYPE_CLASS_TYPE, ValaClassType));
			_tmp8_ = _tmp7_;
			_tmp9_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp8_);
			_vala_code_node_unref0 (sym);
			sym = _tmp9_;
		} else {
			ValaDataType* _tmp10_;
			_tmp10_ = type;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, VALA_TYPE_INTERFACE_TYPE)) {
				ValaDataType* _tmp11_;
				ValaInterface* _tmp12_;
				ValaInterface* _tmp13_;
				ValaSymbol* _tmp14_;
				_tmp11_ = type;
				_tmp12_ = vala_interface_type_get_interface_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, VALA_TYPE_INTERFACE_TYPE, ValaInterfaceType));
				_tmp13_ = _tmp12_;
				_tmp14_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp13_);
				_vala_code_node_unref0 (sym);
				sym = _tmp14_;
			} else {
				ValaDataType* _tmp15_;
				_tmp15_ = type;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, VALA_TYPE_METHOD_TYPE)) {
					ValaDataType* _tmp16_;
					ValaMethod* _tmp17_;
					ValaMethod* _tmp18_;
					ValaSymbol* _tmp19_;
					_tmp16_ = type;
					_tmp17_ = vala_method_type_get_method_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, VALA_TYPE_METHOD_TYPE, ValaMethodType));
					_tmp18_ = _tmp17_;
					_tmp19_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp18_);
					_vala_code_node_unref0 (sym);
					sym = _tmp19_;
				} else {
					ValaDataType* _tmp20_;
					_tmp20_ = type;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, VALA_TYPE_SIGNAL_TYPE)) {
						ValaDataType* _tmp21_;
						ValaSignal* _tmp22_;
						ValaSignal* _tmp23_;
						ValaSymbol* _tmp24_;
						_tmp21_ = type;
						_tmp22_ = vala_signal_type_get_signal_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, VALA_TYPE_SIGNAL_TYPE, ValaSignalType));
						_tmp23_ = _tmp22_;
						_tmp24_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp23_);
						_vala_code_node_unref0 (sym);
						sym = _tmp24_;
					} else {
						ValaDataType* _tmp25_;
						_tmp25_ = type;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, VALA_TYPE_DELEGATE_TYPE)) {
							ValaDataType* _tmp26_;
							ValaDelegate* _tmp27_;
							ValaDelegate* _tmp28_;
							ValaSymbol* _tmp29_;
							_tmp26_ = type;
							_tmp27_ = vala_delegate_type_get_delegate_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, VALA_TYPE_DELEGATE_TYPE, ValaDelegateType));
							_tmp28_ = _tmp27_;
							_tmp29_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp28_);
							_vala_code_node_unref0 (sym);
							sym = _tmp29_;
						} else {
							ValaDataType* _tmp30_;
							_tmp30_ = type;
							if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, VALA_TYPE_VALUE_TYPE)) {
								ValaDataType* _tmp31_;
								ValaTypeSymbol* _tmp32_;
								ValaTypeSymbol* _tmp33_;
								ValaSymbol* _tmp34_;
								_tmp31_ = type;
								_tmp32_ = vala_value_type_get_type_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, VALA_TYPE_VALUE_TYPE, ValaValueType));
								_tmp33_ = _tmp32_;
								_tmp34_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp33_);
								_vala_code_node_unref0 (sym);
								sym = _tmp34_;
							}
						}
					}
				}
			}
		}
	}
	result = sym;
	return result;
}


static glong string_strnlen (gchar* str, glong maxlen) {
	glong result = 0L;
	gchar* end = NULL;
	gchar* _tmp0_;
	glong _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	_tmp0_ = str;
	_tmp1_ = maxlen;
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
	end = _tmp2_;
	_tmp3_ = end;
	if (_tmp3_ == NULL) {
		glong _tmp4_;
		_tmp4_ = maxlen;
		result = _tmp4_;
		return result;
	} else {
		gchar* _tmp5_;
		gchar* _tmp6_;
		_tmp5_ = end;
		_tmp6_ = str;
		result = (glong) (_tmp5_ - _tmp6_);
		return result;
	}
}


static gchar* string_substring (const gchar* self, glong offset, glong len) {
	gchar* result = NULL;
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	glong _tmp1_;
	glong _tmp8_;
	glong _tmp14_;
	glong _tmp17_;
	glong _tmp18_;
	glong _tmp19_;
	glong _tmp20_;
	glong _tmp21_;
	gchar* _tmp22_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp1_ = offset;
	if (_tmp1_ >= ((glong) 0)) {
		glong _tmp2_;
		_tmp2_ = len;
		_tmp0_ = _tmp2_ >= ((glong) 0);
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		glong _tmp3_;
		glong _tmp4_;
		glong _tmp5_;
		_tmp3_ = offset;
		_tmp4_ = len;
		_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
		string_length = _tmp5_;
	} else {
		gint _tmp6_;
		gint _tmp7_;
		_tmp6_ = strlen (self);
		_tmp7_ = _tmp6_;
		string_length = (glong) _tmp7_;
	}
	_tmp8_ = offset;
	if (_tmp8_ < ((glong) 0)) {
		glong _tmp9_;
		glong _tmp10_;
		glong _tmp11_;
		_tmp9_ = string_length;
		_tmp10_ = offset;
		offset = _tmp9_ + _tmp10_;
		_tmp11_ = offset;
		g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
	} else {
		glong _tmp12_;
		glong _tmp13_;
		_tmp12_ = offset;
		_tmp13_ = string_length;
		g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
	}
	_tmp14_ = len;
	if (_tmp14_ < ((glong) 0)) {
		glong _tmp15_;
		glong _tmp16_;
		_tmp15_ = string_length;
		_tmp16_ = offset;
		len = _tmp15_ - _tmp16_;
	}
	_tmp17_ = offset;
	_tmp18_ = len;
	_tmp19_ = string_length;
	g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
	_tmp20_ = offset;
	_tmp21_ = len;
	_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
	result = _tmp22_;
	return result;
}


gboolean vala_semantic_analyzer_check_arguments (ValaSemanticAnalyzer* self, ValaExpression* expr, ValaDataType* mtype, ValaList* params, ValaList* args) {
	gboolean result = FALSE;
	ValaExpression* prev_arg = NULL;
	ValaIterator* arg_it = NULL;
	ValaList* _tmp0_;
	ValaIterator* _tmp1_;
	gboolean _tmp2_ = FALSE;
	ValaDataType* _tmp3_;
	gboolean diag = FALSE;
	gboolean ellipsis = FALSE;
	gint i = 0;
	gboolean _tmp105_ = FALSE;
	gboolean _tmp106_;
	gboolean _tmp151_ = FALSE;
	gboolean _tmp152_;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (expr != NULL, FALSE);
	g_return_val_if_fail (mtype != NULL, FALSE);
	g_return_val_if_fail (params != NULL, FALSE);
	g_return_val_if_fail (args != NULL, FALSE);
	prev_arg = NULL;
	_tmp0_ = args;
	_tmp1_ = vala_iterable_iterator ((ValaIterable*) _tmp0_);
	arg_it = _tmp1_;
	_tmp3_ = mtype;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_METHOD_TYPE)) {
		ValaDataType* _tmp4_;
		ValaMethod* _tmp5_;
		ValaMethod* _tmp6_;
		ValaAttribute* _tmp7_;
		ValaAttribute* _tmp8_;
		_tmp4_ = mtype;
		_tmp5_ = vala_method_type_get_method_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, VALA_TYPE_METHOD_TYPE, ValaMethodType));
		_tmp6_ = _tmp5_;
		_tmp7_ = vala_code_node_get_attribute ((ValaCodeNode*) _tmp6_, "Diagnostics");
		_tmp8_ = _tmp7_;
		_tmp2_ = _tmp8_ != NULL;
		_vala_code_node_unref0 (_tmp8_);
	} else {
		_tmp2_ = FALSE;
	}
	diag = _tmp2_;
	ellipsis = FALSE;
	i = 0;
	{
		ValaList* _param_list = NULL;
		ValaList* _tmp9_;
		ValaList* _tmp10_;
		gint _param_size = 0;
		ValaList* _tmp11_;
		gint _tmp12_;
		gint _tmp13_;
		gint _param_index = 0;
		_tmp9_ = params;
		_tmp10_ = _vala_iterable_ref0 (_tmp9_);
		_param_list = _tmp10_;
		_tmp11_ = _param_list;
		_tmp12_ = vala_collection_get_size ((ValaCollection*) _tmp11_);
		_tmp13_ = _tmp12_;
		_param_size = _tmp13_;
		_param_index = -1;
		while (TRUE) {
			gint _tmp14_;
			gint _tmp15_;
			gint _tmp16_;
			ValaParameter* param = NULL;
			ValaList* _tmp17_;
			gint _tmp18_;
			gpointer _tmp19_;
			ValaParameter* _tmp20_;
			ValaCodeContext* _tmp21_;
			gboolean _tmp22_;
			ValaParameter* _tmp23_;
			gboolean _tmp24_;
			gboolean _tmp25_;
			ValaParameter* _tmp26_;
			gboolean _tmp27_;
			gboolean _tmp28_;
			gboolean _tmp41_ = FALSE;
			ValaIterator* _tmp42_;
			_tmp14_ = _param_index;
			_param_index = _tmp14_ + 1;
			_tmp15_ = _param_index;
			_tmp16_ = _param_size;
			if (!(_tmp15_ < _tmp16_)) {
				break;
			}
			_tmp17_ = _param_list;
			_tmp18_ = _param_index;
			_tmp19_ = vala_list_get (_tmp17_, _tmp18_);
			param = (ValaParameter*) _tmp19_;
			_tmp20_ = param;
			_tmp21_ = self->priv->_context;
			_tmp22_ = vala_code_node_check ((ValaCodeNode*) _tmp20_, _tmp21_);
			if (!_tmp22_) {
				result = FALSE;
				_vala_code_node_unref0 (param);
				_vala_iterable_unref0 (_param_list);
				_vala_iterator_unref0 (arg_it);
				_vala_code_node_unref0 (prev_arg);
				return result;
			}
			_tmp23_ = param;
			_tmp24_ = vala_parameter_get_ellipsis (_tmp23_);
			_tmp25_ = _tmp24_;
			if (_tmp25_) {
				ellipsis = TRUE;
				_vala_code_node_unref0 (param);
				break;
			}
			_tmp26_ = param;
			_tmp27_ = vala_parameter_get_params_array (_tmp26_);
			_tmp28_ = _tmp27_;
			if (_tmp28_) {
				while (TRUE) {
					ValaIterator* _tmp29_;
					gboolean _tmp30_;
					ValaExpression* arg = NULL;
					ValaIterator* _tmp31_;
					gpointer _tmp32_;
					ValaExpression* _tmp33_;
					gint _tmp34_;
					ValaParameter* _tmp35_;
					ValaParameterDirection _tmp36_;
					ValaParameterDirection _tmp37_;
					gboolean _tmp38_;
					gint _tmp40_;
					_tmp29_ = arg_it;
					_tmp30_ = vala_iterator_next (_tmp29_);
					if (!_tmp30_) {
						break;
					}
					_tmp31_ = arg_it;
					_tmp32_ = vala_iterator_get (_tmp31_);
					arg = (ValaExpression*) _tmp32_;
					_tmp33_ = arg;
					_tmp34_ = i;
					_tmp35_ = param;
					_tmp36_ = vala_parameter_get_direction (_tmp35_);
					_tmp37_ = _tmp36_;
					_tmp38_ = vala_semantic_analyzer_check_argument (self, _tmp33_, _tmp34_, _tmp37_);
					if (!_tmp38_) {
						ValaExpression* _tmp39_;
						_tmp39_ = expr;
						vala_code_node_set_error ((ValaCodeNode*) _tmp39_, TRUE);
						result = FALSE;
						_vala_code_node_unref0 (arg);
						_vala_code_node_unref0 (param);
						_vala_iterable_unref0 (_param_list);
						_vala_iterator_unref0 (arg_it);
						_vala_code_node_unref0 (prev_arg);
						return result;
					}
					_tmp40_ = i;
					i = _tmp40_ + 1;
					_vala_code_node_unref0 (arg);
				}
				_vala_code_node_unref0 (param);
				break;
			}
			_tmp42_ = arg_it;
			if (_tmp42_ == NULL) {
				_tmp41_ = TRUE;
			} else {
				ValaIterator* _tmp43_;
				gboolean _tmp44_;
				_tmp43_ = arg_it;
				_tmp44_ = vala_iterator_next (_tmp43_);
				_tmp41_ = !_tmp44_;
			}
			if (_tmp41_) {
				ValaParameter* _tmp45_;
				ValaExpression* _tmp46_;
				ValaExpression* _tmp47_;
				_tmp45_ = param;
				_tmp46_ = vala_variable_get_initializer ((ValaVariable*) _tmp45_);
				_tmp47_ = _tmp46_;
				if (_tmp47_ == NULL) {
					ValaExpression* _tmp48_;
					ValaMethodType* m = NULL;
					ValaDataType* _tmp49_;
					ValaMethodType* _tmp50_;
					ValaMethodType* _tmp51_;
					_tmp48_ = expr;
					vala_code_node_set_error ((ValaCodeNode*) _tmp48_, TRUE);
					_tmp49_ = mtype;
					_tmp50_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp49_, VALA_TYPE_METHOD_TYPE) ? ((ValaMethodType*) _tmp49_) : NULL);
					m = _tmp50_;
					_tmp51_ = m;
					if (_tmp51_ != NULL) {
						ValaExpression* _tmp52_;
						ValaSourceReference* _tmp53_;
						ValaSourceReference* _tmp54_;
						ValaMethodType* _tmp55_;
						ValaList* _tmp56_;
						ValaList* _tmp57_;
						gint _tmp58_;
						gint _tmp59_;
						ValaList* _tmp60_;
						gint _tmp61_;
						gint _tmp62_;
						ValaMethodType* _tmp63_;
						gchar* _tmp64_;
						gchar* _tmp65_;
						gchar* _tmp66_;
						gchar* _tmp67_;
						_tmp52_ = expr;
						_tmp53_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp52_);
						_tmp54_ = _tmp53_;
						_tmp55_ = m;
						_tmp56_ = vala_data_type_get_parameters ((ValaDataType*) _tmp55_);
						_tmp57_ = _tmp56_;
						_tmp58_ = vala_collection_get_size ((ValaCollection*) _tmp57_);
						_tmp59_ = _tmp58_;
						_tmp60_ = args;
						_tmp61_ = vala_collection_get_size ((ValaCollection*) _tmp60_);
						_tmp62_ = _tmp61_;
						_tmp63_ = m;
						_tmp64_ = vala_data_type_to_prototype_string ((ValaDataType*) _tmp63_, NULL);
						_tmp65_ = _tmp64_;
						_tmp66_ = g_strdup_printf ("%d missing arguments for `%s'", _tmp59_ - _tmp62_, _tmp65_);
						_tmp67_ = _tmp66_;
						vala_report_error (_tmp54_, _tmp67_);
						_g_free0 (_tmp67_);
						_g_free0 (_tmp65_);
						_vala_iterable_unref0 (_tmp57_);
					} else {
						ValaExpression* _tmp68_;
						ValaSourceReference* _tmp69_;
						ValaSourceReference* _tmp70_;
						ValaDataType* _tmp71_;
						gchar* _tmp72_;
						gchar* _tmp73_;
						ValaList* _tmp74_;
						gint _tmp75_;
						gint _tmp76_;
						gchar* _tmp77_;
						gchar* _tmp78_;
						_tmp68_ = expr;
						_tmp69_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp68_);
						_tmp70_ = _tmp69_;
						_tmp71_ = mtype;
						_tmp72_ = vala_code_node_to_string ((ValaCodeNode*) _tmp71_);
						_tmp73_ = _tmp72_;
						_tmp74_ = args;
						_tmp75_ = vala_collection_get_size ((ValaCollection*) _tmp74_);
						_tmp76_ = _tmp75_;
						_tmp77_ = g_strdup_printf ("Too few arguments, method `%s' does not take %d arguments", _tmp73_, _tmp76_);
						_tmp78_ = _tmp77_;
						vala_report_error (_tmp70_, _tmp78_);
						_g_free0 (_tmp78_);
						_g_free0 (_tmp73_);
					}
					result = FALSE;
					_vala_code_node_unref0 (m);
					_vala_code_node_unref0 (param);
					_vala_iterable_unref0 (_param_list);
					_vala_iterator_unref0 (arg_it);
					_vala_code_node_unref0 (prev_arg);
					return result;
				} else {
					ValaMethodCall* invocation_expr = NULL;
					ValaExpression* _tmp79_;
					ValaMethodCall* _tmp80_;
					ValaObjectCreationExpression* object_creation_expr = NULL;
					ValaExpression* _tmp81_;
					ValaObjectCreationExpression* _tmp82_;
					ValaMethodCall* _tmp83_;
					_tmp79_ = expr;
					_tmp80_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp79_, VALA_TYPE_METHOD_CALL) ? ((ValaMethodCall*) _tmp79_) : NULL);
					invocation_expr = _tmp80_;
					_tmp81_ = expr;
					_tmp82_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp81_, VALA_TYPE_OBJECT_CREATION_EXPRESSION) ? ((ValaObjectCreationExpression*) _tmp81_) : NULL);
					object_creation_expr = _tmp82_;
					_tmp83_ = invocation_expr;
					if (_tmp83_ != NULL) {
						ValaMethodCall* _tmp84_;
						ValaParameter* _tmp85_;
						ValaExpression* _tmp86_;
						ValaExpression* _tmp87_;
						_tmp84_ = invocation_expr;
						_tmp85_ = param;
						_tmp86_ = vala_variable_get_initializer ((ValaVariable*) _tmp85_);
						_tmp87_ = _tmp86_;
						vala_method_call_add_argument (_tmp84_, _tmp87_);
					} else {
						ValaObjectCreationExpression* _tmp88_;
						_tmp88_ = object_creation_expr;
						if (_tmp88_ != NULL) {
							ValaObjectCreationExpression* _tmp89_;
							ValaParameter* _tmp90_;
							ValaExpression* _tmp91_;
							ValaExpression* _tmp92_;
							_tmp89_ = object_creation_expr;
							_tmp90_ = param;
							_tmp91_ = vala_variable_get_initializer ((ValaVariable*) _tmp90_);
							_tmp92_ = _tmp91_;
							vala_object_creation_expression_add_argument (_tmp89_, _tmp92_);
						} else {
							g_assert_not_reached ();
						}
					}
					_vala_iterator_unref0 (arg_it);
					arg_it = NULL;
					_vala_code_node_unref0 (object_creation_expr);
					_vala_code_node_unref0 (invocation_expr);
				}
			} else {
				ValaExpression* arg = NULL;
				ValaIterator* _tmp93_;
				gpointer _tmp94_;
				ValaExpression* _tmp95_;
				gint _tmp96_;
				ValaParameter* _tmp97_;
				ValaParameterDirection _tmp98_;
				ValaParameterDirection _tmp99_;
				gboolean _tmp100_;
				ValaExpression* _tmp102_;
				ValaExpression* _tmp103_;
				gint _tmp104_;
				_tmp93_ = arg_it;
				_tmp94_ = vala_iterator_get (_tmp93_);
				arg = (ValaExpression*) _tmp94_;
				_tmp95_ = arg;
				_tmp96_ = i;
				_tmp97_ = param;
				_tmp98_ = vala_parameter_get_direction (_tmp97_);
				_tmp99_ = _tmp98_;
				_tmp100_ = vala_semantic_analyzer_check_argument (self, _tmp95_, _tmp96_, _tmp99_);
				if (!_tmp100_) {
					ValaExpression* _tmp101_;
					_tmp101_ = expr;
					vala_code_node_set_error ((ValaCodeNode*) _tmp101_, TRUE);
					result = FALSE;
					_vala_code_node_unref0 (arg);
					_vala_code_node_unref0 (param);
					_vala_iterable_unref0 (_param_list);
					_vala_iterator_unref0 (arg_it);
					_vala_code_node_unref0 (prev_arg);
					return result;
				}
				_tmp102_ = arg;
				_tmp103_ = _vala_code_node_ref0 (_tmp102_);
				_vala_code_node_unref0 (prev_arg);
				prev_arg = _tmp103_;
				_tmp104_ = i;
				i = _tmp104_ + 1;
				_vala_code_node_unref0 (arg);
			}
			_vala_code_node_unref0 (param);
		}
		_vala_iterable_unref0 (_param_list);
	}
	_tmp106_ = ellipsis;
	if (_tmp106_) {
		ValaIterator* _tmp107_;
		gint _tmp108_;
		ValaExpression* _tmp109_;
		ValaSourceReference* _tmp110_;
		ValaSourceReference* _tmp111_;
		gboolean _tmp112_;
		_tmp107_ = arg_it;
		_tmp108_ = i;
		_tmp109_ = expr;
		_tmp110_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp109_);
		_tmp111_ = _tmp110_;
		_tmp112_ = vala_semantic_analyzer_check_variadic_arguments (self, _tmp107_, _tmp108_, _tmp111_);
		_tmp105_ = !_tmp112_;
	} else {
		_tmp105_ = FALSE;
	}
	if (_tmp105_) {
		ValaExpression* _tmp113_;
		_tmp113_ = expr;
		vala_code_node_set_error ((ValaCodeNode*) _tmp113_, TRUE);
		result = FALSE;
		_vala_iterator_unref0 (arg_it);
		_vala_code_node_unref0 (prev_arg);
		return result;
	} else {
		gboolean _tmp114_ = FALSE;
		gboolean _tmp115_ = FALSE;
		gboolean _tmp116_;
		_tmp116_ = ellipsis;
		if (!_tmp116_) {
			ValaIterator* _tmp117_;
			_tmp117_ = arg_it;
			_tmp115_ = _tmp117_ != NULL;
		} else {
			_tmp115_ = FALSE;
		}
		if (_tmp115_) {
			ValaIterator* _tmp118_;
			gboolean _tmp119_;
			_tmp118_ = arg_it;
			_tmp119_ = vala_iterator_next (_tmp118_);
			_tmp114_ = _tmp119_;
		} else {
			_tmp114_ = FALSE;
		}
		if (_tmp114_) {
			ValaExpression* _tmp120_;
			ValaMethodType* m = NULL;
			ValaDataType* _tmp121_;
			ValaMethodType* _tmp122_;
			ValaMethodType* _tmp123_;
			_tmp120_ = expr;
			vala_code_node_set_error ((ValaCodeNode*) _tmp120_, TRUE);
			_tmp121_ = mtype;
			_tmp122_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp121_, VALA_TYPE_METHOD_TYPE) ? ((ValaMethodType*) _tmp121_) : NULL);
			m = _tmp122_;
			_tmp123_ = m;
			if (_tmp123_ != NULL) {
				ValaExpression* _tmp124_;
				ValaSourceReference* _tmp125_;
				ValaSourceReference* _tmp126_;
				ValaList* _tmp127_;
				gint _tmp128_;
				gint _tmp129_;
				ValaMethodType* _tmp130_;
				ValaList* _tmp131_;
				ValaList* _tmp132_;
				gint _tmp133_;
				gint _tmp134_;
				ValaMethodType* _tmp135_;
				gchar* _tmp136_;
				gchar* _tmp137_;
				gchar* _tmp138_;
				gchar* _tmp139_;
				_tmp124_ = expr;
				_tmp125_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp124_);
				_tmp126_ = _tmp125_;
				_tmp127_ = args;
				_tmp128_ = vala_collection_get_size ((ValaCollection*) _tmp127_);
				_tmp129_ = _tmp128_;
				_tmp130_ = m;
				_tmp131_ = vala_data_type_get_parameters ((ValaDataType*) _tmp130_);
				_tmp132_ = _tmp131_;
				_tmp133_ = vala_collection_get_size ((ValaCollection*) _tmp132_);
				_tmp134_ = _tmp133_;
				_tmp135_ = m;
				_tmp136_ = vala_data_type_to_prototype_string ((ValaDataType*) _tmp135_, NULL);
				_tmp137_ = _tmp136_;
				_tmp138_ = g_strdup_printf ("%d extra arguments for `%s'", _tmp129_ - _tmp134_, _tmp137_);
				_tmp139_ = _tmp138_;
				vala_report_error (_tmp126_, _tmp139_);
				_g_free0 (_tmp139_);
				_g_free0 (_tmp137_);
				_vala_iterable_unref0 (_tmp132_);
			} else {
				ValaExpression* _tmp140_;
				ValaSourceReference* _tmp141_;
				ValaSourceReference* _tmp142_;
				ValaDataType* _tmp143_;
				gchar* _tmp144_;
				gchar* _tmp145_;
				ValaList* _tmp146_;
				gint _tmp147_;
				gint _tmp148_;
				gchar* _tmp149_;
				gchar* _tmp150_;
				_tmp140_ = expr;
				_tmp141_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp140_);
				_tmp142_ = _tmp141_;
				_tmp143_ = mtype;
				_tmp144_ = vala_code_node_to_string ((ValaCodeNode*) _tmp143_);
				_tmp145_ = _tmp144_;
				_tmp146_ = args;
				_tmp147_ = vala_collection_get_size ((ValaCollection*) _tmp146_);
				_tmp148_ = _tmp147_;
				_tmp149_ = g_strdup_printf ("Too many arguments, method `%s' does not take %d arguments", _tmp145_, _tmp148_);
				_tmp150_ = _tmp149_;
				vala_report_error (_tmp142_, _tmp150_);
				_g_free0 (_tmp150_);
				_g_free0 (_tmp145_);
			}
			result = FALSE;
			_vala_code_node_unref0 (m);
			_vala_iterator_unref0 (arg_it);
			_vala_code_node_unref0 (prev_arg);
			return result;
		}
	}
	_tmp152_ = diag;
	if (_tmp152_) {
		ValaExpression* _tmp153_;
		_tmp153_ = prev_arg;
		_tmp151_ = _tmp153_ != NULL;
	} else {
		_tmp151_ = FALSE;
	}
	if (_tmp151_) {
		ValaStringLiteral* format_arg = NULL;
		ValaExpression* _tmp154_;
		ValaStringLiteral* _tmp155_;
		ValaStringLiteral* _tmp156_;
		_tmp154_ = prev_arg;
		_tmp155_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp154_, VALA_TYPE_STRING_LITERAL) ? ((ValaStringLiteral*) _tmp154_) : NULL);
		format_arg = _tmp155_;
		_tmp156_ = format_arg;
		if (_tmp156_ != NULL) {
			ValaStringLiteral* _tmp157_;
			ValaExpression* _tmp158_;
			ValaSourceReference* _tmp159_;
			ValaSourceReference* _tmp160_;
			ValaSourceFile* _tmp161_;
			ValaSourceFile* _tmp162_;
			const gchar* _tmp163_;
			const gchar* _tmp164_;
			gchar* _tmp165_;
			gchar* _tmp166_;
			ValaExpression* _tmp167_;
			ValaSourceReference* _tmp168_;
			ValaSourceReference* _tmp169_;
			ValaSourceLocation _tmp170_ = {0};
			ValaSourceLocation _tmp171_;
			gint _tmp172_;
			ValaStringLiteral* _tmp173_;
			const gchar* _tmp174_;
			const gchar* _tmp175_;
			gchar* _tmp176_;
			gchar* _tmp177_;
			gchar* _tmp178_;
			gchar* _tmp179_;
			_tmp157_ = format_arg;
			_tmp158_ = expr;
			_tmp159_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp158_);
			_tmp160_ = _tmp159_;
			_tmp161_ = vala_source_reference_get_file (_tmp160_);
			_tmp162_ = _tmp161_;
			_tmp163_ = vala_source_file_get_filename (_tmp162_);
			_tmp164_ = _tmp163_;
			_tmp165_ = g_path_get_basename (_tmp164_);
			_tmp166_ = _tmp165_;
			_tmp167_ = expr;
			_tmp168_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp167_);
			_tmp169_ = _tmp168_;
			vala_source_reference_get_begin (_tmp169_, &_tmp170_);
			_tmp171_ = _tmp170_;
			_tmp172_ = _tmp171_.line;
			_tmp173_ = format_arg;
			_tmp174_ = vala_string_literal_get_value (_tmp173_);
			_tmp175_ = _tmp174_;
			_tmp176_ = string_substring (_tmp175_, (glong) 1, (glong) -1);
			_tmp177_ = _tmp176_;
			_tmp178_ = g_strdup_printf ("\"%s:%d: %s", _tmp166_, _tmp172_, _tmp177_);
			_tmp179_ = _tmp178_;
			vala_string_literal_set_value (_tmp157_, _tmp179_);
			_g_free0 (_tmp179_);
			_g_free0 (_tmp177_);
			_g_free0 (_tmp166_);
		}
		_vala_code_node_unref0 (format_arg);
	}
	result = TRUE;
	_vala_iterator_unref0 (arg_it);
	_vala_code_node_unref0 (prev_arg);
	return result;
}


static gboolean vala_semantic_analyzer_check_argument (ValaSemanticAnalyzer* self, ValaExpression* arg, gint i, ValaParameterDirection direction) {
	gboolean result = FALSE;
	ValaExpression* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	ValaExpression* _tmp130_;
	ValaDataType* _tmp131_;
	ValaDataType* _tmp132_;
	ValaMemberAccess* ma = NULL;
	ValaExpression* _tmp189_;
	ValaMemberAccess* _tmp190_;
	gboolean _tmp191_ = FALSE;
	ValaMemberAccess* _tmp192_;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (arg != NULL, FALSE);
	_tmp0_ = arg;
	_tmp1_ = vala_code_node_get_error ((ValaCodeNode*) _tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		result = FALSE;
		return result;
	} else {
		ValaExpression* _tmp3_;
		_tmp3_ = arg;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_NAMED_ARGUMENT)) {
			ValaExpression* _tmp4_;
			ValaSourceReference* _tmp5_;
			ValaSourceReference* _tmp6_;
			_tmp4_ = arg;
			_tmp5_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp4_);
			_tmp6_ = _tmp5_;
			vala_report_error (_tmp6_, "Named arguments are not supported yet");
			result = FALSE;
			return result;
		} else {
			ValaExpression* _tmp7_;
			ValaDataType* _tmp8_;
			ValaDataType* _tmp9_;
			_tmp7_ = arg;
			_tmp8_ = vala_expression_get_value_type (_tmp7_);
			_tmp9_ = _tmp8_;
			if (_tmp9_ == NULL) {
				gboolean _tmp10_ = FALSE;
				ValaExpression* _tmp11_;
				ValaDataType* _tmp12_;
				ValaDataType* _tmp13_;
				_tmp11_ = arg;
				_tmp12_ = vala_expression_get_target_type (_tmp11_);
				_tmp13_ = _tmp12_;
				if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, VALA_TYPE_DELEGATE_TYPE)) {
					_tmp10_ = TRUE;
				} else {
					ValaExpression* _tmp14_;
					ValaSymbol* _tmp15_;
					ValaSymbol* _tmp16_;
					_tmp14_ = arg;
					_tmp15_ = vala_expression_get_symbol_reference (_tmp14_);
					_tmp16_ = _tmp15_;
					_tmp10_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, VALA_TYPE_METHOD);
				}
				if (_tmp10_) {
					ValaExpression* _tmp17_;
					ValaSourceReference* _tmp18_;
					ValaSourceReference* _tmp19_;
					gint _tmp20_;
					gchar* _tmp21_;
					gchar* _tmp22_;
					_tmp17_ = arg;
					_tmp18_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp17_);
					_tmp19_ = _tmp18_;
					_tmp20_ = i;
					_tmp21_ = g_strdup_printf ("Invalid type for argument %d", _tmp20_ + 1);
					_tmp22_ = _tmp21_;
					vala_report_error (_tmp19_, _tmp22_);
					_g_free0 (_tmp22_);
					result = FALSE;
					return result;
				}
			} else {
				gint arg_type = 0;
				ValaExpression* _tmp23_;
				ValaDataType* _tmp24_;
				ValaDataType* _tmp25_;
				gint _tmp35_;
				arg_type = 1;
				_tmp23_ = arg;
				_tmp24_ = vala_expression_get_value_type (_tmp23_);
				_tmp25_ = _tmp24_;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, VALA_TYPE_NULL_TYPE)) {
					arg_type = 0;
				} else {
					ValaExpression* _tmp26_;
					_tmp26_ = arg;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, VALA_TYPE_UNARY_EXPRESSION)) {
						ValaUnaryExpression* unary = NULL;
						ValaExpression* _tmp27_;
						ValaUnaryExpression* _tmp28_;
						ValaUnaryExpression* _tmp29_;
						ValaUnaryOperator _tmp30_;
						ValaUnaryOperator _tmp31_;
						_tmp27_ = arg;
						_tmp28_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, VALA_TYPE_UNARY_EXPRESSION, ValaUnaryExpression));
						unary = _tmp28_;
						_tmp29_ = unary;
						_tmp30_ = vala_unary_expression_get_operator (_tmp29_);
						_tmp31_ = _tmp30_;
						if (_tmp31_ == VALA_UNARY_OPERATOR_REF) {
							arg_type = 2;
						} else {
							ValaUnaryExpression* _tmp32_;
							ValaUnaryOperator _tmp33_;
							ValaUnaryOperator _tmp34_;
							_tmp32_ = unary;
							_tmp33_ = vala_unary_expression_get_operator (_tmp32_);
							_tmp34_ = _tmp33_;
							if (_tmp34_ == VALA_UNARY_OPERATOR_OUT) {
								arg_type = 3;
							}
						}
						_vala_code_node_unref0 (unary);
					}
				}
				_tmp35_ = arg_type;
				if (_tmp35_ == 0) {
					ValaParameterDirection _tmp36_;
					_tmp36_ = direction;
					if (_tmp36_ == VALA_PARAMETER_DIRECTION_REF) {
						ValaExpression* _tmp37_;
						ValaSourceReference* _tmp38_;
						ValaSourceReference* _tmp39_;
						gint _tmp40_;
						gchar* _tmp41_;
						gchar* _tmp42_;
						_tmp37_ = arg;
						_tmp38_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp37_);
						_tmp39_ = _tmp38_;
						_tmp40_ = i;
						_tmp41_ = g_strdup_printf ("Argument %d: Cannot pass null to reference parameter", _tmp40_ + 1);
						_tmp42_ = _tmp41_;
						vala_report_error (_tmp39_, _tmp42_);
						_g_free0 (_tmp42_);
						result = FALSE;
						return result;
					} else {
						gboolean _tmp43_ = FALSE;
						ValaParameterDirection _tmp44_;
						_tmp44_ = direction;
						if (_tmp44_ != VALA_PARAMETER_DIRECTION_OUT) {
							ValaExpression* _tmp45_;
							ValaDataType* _tmp46_;
							ValaDataType* _tmp47_;
							gboolean _tmp48_;
							gboolean _tmp49_;
							_tmp45_ = arg;
							_tmp46_ = vala_expression_get_target_type (_tmp45_);
							_tmp47_ = _tmp46_;
							_tmp48_ = vala_data_type_get_nullable (_tmp47_);
							_tmp49_ = _tmp48_;
							_tmp43_ = !_tmp49_;
						} else {
							_tmp43_ = FALSE;
						}
						if (_tmp43_) {
							ValaExpression* _tmp50_;
							ValaSourceReference* _tmp51_;
							ValaSourceReference* _tmp52_;
							gint _tmp53_;
							gchar* _tmp54_;
							gchar* _tmp55_;
							_tmp50_ = arg;
							_tmp51_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp50_);
							_tmp52_ = _tmp51_;
							_tmp53_ = i;
							_tmp54_ = g_strdup_printf ("Argument %d: Cannot pass null to non-null parameter type", _tmp53_ + 1);
							_tmp55_ = _tmp54_;
							vala_report_warning (_tmp52_, _tmp55_);
							_g_free0 (_tmp55_);
						}
					}
				} else {
					gint _tmp56_;
					_tmp56_ = arg_type;
					if (_tmp56_ == 1) {
						ValaParameterDirection _tmp57_;
						_tmp57_ = direction;
						if (_tmp57_ != VALA_PARAMETER_DIRECTION_IN) {
							ValaExpression* _tmp58_;
							ValaSourceReference* _tmp59_;
							ValaSourceReference* _tmp60_;
							gint _tmp61_;
							gchar* _tmp62_;
							gchar* _tmp63_;
							_tmp58_ = arg;
							_tmp59_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp58_);
							_tmp60_ = _tmp59_;
							_tmp61_ = i;
							_tmp62_ = g_strdup_printf ("Argument %d: Cannot pass value to reference or output parameter", _tmp61_ + 1);
							_tmp63_ = _tmp62_;
							vala_report_error (_tmp60_, _tmp63_);
							_g_free0 (_tmp63_);
							result = FALSE;
							return result;
						}
					} else {
						gint _tmp64_;
						_tmp64_ = arg_type;
						if (_tmp64_ == 2) {
							ValaParameterDirection _tmp65_;
							ValaExpression* _tmp72_;
							ValaDataType* _tmp73_;
							ValaDataType* _tmp74_;
							gboolean _tmp75_;
							ValaExpression* _tmp91_;
							ValaDataType* _tmp92_;
							ValaDataType* _tmp93_;
							gboolean _tmp94_;
							_tmp65_ = direction;
							if (_tmp65_ != VALA_PARAMETER_DIRECTION_REF) {
								ValaExpression* _tmp66_;
								ValaSourceReference* _tmp67_;
								ValaSourceReference* _tmp68_;
								gint _tmp69_;
								gchar* _tmp70_;
								gchar* _tmp71_;
								_tmp66_ = arg;
								_tmp67_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp66_);
								_tmp68_ = _tmp67_;
								_tmp69_ = i;
								_tmp70_ = g_strdup_printf ("Argument %d: Cannot pass ref argument to non-reference parameter", _tmp69_ + 1);
								_tmp71_ = _tmp70_;
								vala_report_error (_tmp68_, _tmp71_);
								_g_free0 (_tmp71_);
								result = FALSE;
								return result;
							}
							_tmp72_ = arg;
							_tmp73_ = vala_expression_get_target_type (_tmp72_);
							_tmp74_ = _tmp73_;
							_tmp75_ = vala_data_type_is_disposable (_tmp74_);
							if (_tmp75_) {
								gboolean _tmp76_ = FALSE;
								ValaExpression* _tmp77_;
								ValaDataType* _tmp78_;
								ValaDataType* _tmp79_;
								_tmp77_ = arg;
								_tmp78_ = vala_expression_get_value_type (_tmp77_);
								_tmp79_ = _tmp78_;
								if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp79_, VALA_TYPE_POINTER_TYPE)) {
									ValaExpression* _tmp80_;
									ValaDataType* _tmp81_;
									ValaDataType* _tmp82_;
									gboolean _tmp83_;
									gboolean _tmp84_;
									_tmp80_ = arg;
									_tmp81_ = vala_expression_get_value_type (_tmp80_);
									_tmp82_ = _tmp81_;
									_tmp83_ = vala_data_type_get_value_owned (_tmp82_);
									_tmp84_ = _tmp83_;
									_tmp76_ = !_tmp84_;
								} else {
									_tmp76_ = FALSE;
								}
								if (_tmp76_) {
									ValaExpression* _tmp85_;
									ValaSourceReference* _tmp86_;
									ValaSourceReference* _tmp87_;
									gint _tmp88_;
									gchar* _tmp89_;
									gchar* _tmp90_;
									_tmp85_ = arg;
									_tmp86_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp85_);
									_tmp87_ = _tmp86_;
									_tmp88_ = i;
									_tmp89_ = g_strdup_printf ("Argument %d: Cannot pass unowned ref argument to owned reference param" \
"eter", _tmp88_ + 1);
									_tmp90_ = _tmp89_;
									vala_report_error (_tmp87_, _tmp90_);
									_g_free0 (_tmp90_);
									result = FALSE;
									return result;
								}
							}
							_tmp91_ = arg;
							_tmp92_ = vala_expression_get_value_type (_tmp91_);
							_tmp93_ = _tmp92_;
							_tmp94_ = vala_data_type_is_disposable (_tmp93_);
							if (_tmp94_) {
								ValaExpression* _tmp95_;
								ValaDataType* _tmp96_;
								ValaDataType* _tmp97_;
								gboolean _tmp98_;
								gboolean _tmp99_;
								_tmp95_ = arg;
								_tmp96_ = vala_expression_get_target_type (_tmp95_);
								_tmp97_ = _tmp96_;
								_tmp98_ = vala_data_type_get_value_owned (_tmp97_);
								_tmp99_ = _tmp98_;
								if (!_tmp99_) {
									ValaExpression* _tmp100_;
									ValaSourceReference* _tmp101_;
									ValaSourceReference* _tmp102_;
									gint _tmp103_;
									gchar* _tmp104_;
									gchar* _tmp105_;
									_tmp100_ = arg;
									_tmp101_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp100_);
									_tmp102_ = _tmp101_;
									_tmp103_ = i;
									_tmp104_ = g_strdup_printf ("Argument %d: Cannot pass owned ref argument to unowned reference param" \
"eter", _tmp103_ + 1);
									_tmp105_ = _tmp104_;
									vala_report_error (_tmp102_, _tmp105_);
									_g_free0 (_tmp105_);
									result = FALSE;
									return result;
								}
							}
						} else {
							gint _tmp106_;
							_tmp106_ = arg_type;
							if (_tmp106_ == 3) {
								ValaParameterDirection _tmp107_;
								ValaExpression* _tmp114_;
								ValaDataType* _tmp115_;
								ValaDataType* _tmp116_;
								gboolean _tmp117_;
								_tmp107_ = direction;
								if (_tmp107_ != VALA_PARAMETER_DIRECTION_OUT) {
									ValaExpression* _tmp108_;
									ValaSourceReference* _tmp109_;
									ValaSourceReference* _tmp110_;
									gint _tmp111_;
									gchar* _tmp112_;
									gchar* _tmp113_;
									_tmp108_ = arg;
									_tmp109_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp108_);
									_tmp110_ = _tmp109_;
									_tmp111_ = i;
									_tmp112_ = g_strdup_printf ("Argument %d: Cannot pass out argument to non-output parameter", _tmp111_ + 1);
									_tmp113_ = _tmp112_;
									vala_report_error (_tmp110_, _tmp113_);
									_g_free0 (_tmp113_);
									result = FALSE;
									return result;
								}
								_tmp114_ = arg;
								_tmp115_ = vala_expression_get_target_type (_tmp114_);
								_tmp116_ = _tmp115_;
								_tmp117_ = vala_data_type_is_disposable (_tmp116_);
								if (_tmp117_) {
									gboolean _tmp118_ = FALSE;
									ValaExpression* _tmp119_;
									ValaDataType* _tmp120_;
									ValaDataType* _tmp121_;
									_tmp119_ = arg;
									_tmp120_ = vala_expression_get_value_type (_tmp119_);
									_tmp121_ = _tmp120_;
									if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp121_, VALA_TYPE_POINTER_TYPE)) {
										ValaExpression* _tmp122_;
										ValaDataType* _tmp123_;
										ValaDataType* _tmp124_;
										gboolean _tmp125_;
										gboolean _tmp126_;
										_tmp122_ = arg;
										_tmp123_ = vala_expression_get_value_type (_tmp122_);
										_tmp124_ = _tmp123_;
										_tmp125_ = vala_data_type_get_value_owned (_tmp124_);
										_tmp126_ = _tmp125_;
										_tmp118_ = !_tmp126_;
									} else {
										_tmp118_ = FALSE;
									}
									if (_tmp118_) {
										ValaExpression* _tmp127_;
										ValaSourceReference* _tmp128_;
										ValaSourceReference* _tmp129_;
										_tmp127_ = arg;
										_tmp128_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp127_);
										_tmp129_ = _tmp128_;
										vala_report_error (_tmp129_, "Invalid assignment from owned expression to unowned variable");
										result = FALSE;
										return result;
									}
								}
							}
						}
					}
				}
			}
		}
	}
	_tmp130_ = arg;
	_tmp131_ = vala_expression_get_target_type (_tmp130_);
	_tmp132_ = _tmp131_;
	if (_tmp132_ != NULL) {
		gboolean _tmp133_ = FALSE;
		gboolean _tmp134_ = FALSE;
		ValaParameterDirection _tmp135_;
		_tmp135_ = direction;
		if (_tmp135_ == VALA_PARAMETER_DIRECTION_IN) {
			_tmp134_ = TRUE;
		} else {
			ValaParameterDirection _tmp136_;
			_tmp136_ = direction;
			_tmp134_ = _tmp136_ == VALA_PARAMETER_DIRECTION_REF;
		}
		if (_tmp134_) {
			ValaExpression* _tmp137_;
			ValaDataType* _tmp138_;
			ValaDataType* _tmp139_;
			ValaExpression* _tmp140_;
			ValaDataType* _tmp141_;
			ValaDataType* _tmp142_;
			gboolean _tmp143_;
			_tmp137_ = arg;
			_tmp138_ = vala_expression_get_value_type (_tmp137_);
			_tmp139_ = _tmp138_;
			_tmp140_ = arg;
			_tmp141_ = vala_expression_get_target_type (_tmp140_);
			_tmp142_ = _tmp141_;
			_tmp143_ = vala_data_type_compatible (_tmp139_, _tmp142_);
			_tmp133_ = !_tmp143_;
		} else {
			_tmp133_ = FALSE;
		}
		if (_tmp133_) {
			ValaExpression* _tmp144_;
			ValaSourceReference* _tmp145_;
			ValaSourceReference* _tmp146_;
			gint _tmp147_;
			ValaExpression* _tmp148_;
			ValaDataType* _tmp149_;
			ValaDataType* _tmp150_;
			gchar* _tmp151_;
			gchar* _tmp152_;
			ValaExpression* _tmp153_;
			ValaDataType* _tmp154_;
			ValaDataType* _tmp155_;
			gchar* _tmp156_;
			gchar* _tmp157_;
			gchar* _tmp158_;
			gchar* _tmp159_;
			_tmp144_ = arg;
			_tmp145_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp144_);
			_tmp146_ = _tmp145_;
			_tmp147_ = i;
			_tmp148_ = arg;
			_tmp149_ = vala_expression_get_value_type (_tmp148_);
			_tmp150_ = _tmp149_;
			_tmp151_ = vala_data_type_to_prototype_string (_tmp150_, NULL);
			_tmp152_ = _tmp151_;
			_tmp153_ = arg;
			_tmp154_ = vala_expression_get_target_type (_tmp153_);
			_tmp155_ = _tmp154_;
			_tmp156_ = vala_data_type_to_prototype_string (_tmp155_, NULL);
			_tmp157_ = _tmp156_;
			_tmp158_ = g_strdup_printf ("Argument %d: Cannot convert from `%s' to `%s'", _tmp147_ + 1, _tmp152_, _tmp157_);
			_tmp159_ = _tmp158_;
			vala_report_error (_tmp146_, _tmp159_);
			_g_free0 (_tmp159_);
			_g_free0 (_tmp157_);
			_g_free0 (_tmp152_);
			result = FALSE;
			return result;
		} else {
			gboolean _tmp160_ = FALSE;
			gboolean _tmp161_ = FALSE;
			gboolean _tmp162_ = FALSE;
			ValaParameterDirection _tmp163_;
			_tmp163_ = direction;
			if (_tmp163_ == VALA_PARAMETER_DIRECTION_REF) {
				_tmp162_ = TRUE;
			} else {
				ValaParameterDirection _tmp164_;
				_tmp164_ = direction;
				_tmp162_ = _tmp164_ == VALA_PARAMETER_DIRECTION_OUT;
			}
			if (_tmp162_) {
				ValaExpression* _tmp165_;
				ValaDataType* _tmp166_;
				ValaDataType* _tmp167_;
				ValaExpression* _tmp168_;
				ValaDataType* _tmp169_;
				ValaDataType* _tmp170_;
				gboolean _tmp171_;
				_tmp165_ = arg;
				_tmp166_ = vala_expression_get_target_type (_tmp165_);
				_tmp167_ = _tmp166_;
				_tmp168_ = arg;
				_tmp169_ = vala_expression_get_value_type (_tmp168_);
				_tmp170_ = _tmp169_;
				_tmp171_ = vala_data_type_compatible (_tmp167_, _tmp170_);
				_tmp161_ = !_tmp171_;
			} else {
				_tmp161_ = FALSE;
			}
			if (_tmp161_) {
				ValaExpression* _tmp172_;
				_tmp172_ = arg;
				_tmp160_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp172_, VALA_TYPE_NULL_LITERAL);
			} else {
				_tmp160_ = FALSE;
			}
			if (_tmp160_) {
				ValaExpression* _tmp173_;
				ValaSourceReference* _tmp174_;
				ValaSourceReference* _tmp175_;
				gint _tmp176_;
				ValaExpression* _tmp177_;
				ValaDataType* _tmp178_;
				ValaDataType* _tmp179_;
				gchar* _tmp180_;
				gchar* _tmp181_;
				ValaExpression* _tmp182_;
				ValaDataType* _tmp183_;
				ValaDataType* _tmp184_;
				gchar* _tmp185_;
				gchar* _tmp186_;
				gchar* _tmp187_;
				gchar* _tmp188_;
				_tmp173_ = arg;
				_tmp174_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp173_);
				_tmp175_ = _tmp174_;
				_tmp176_ = i;
				_tmp177_ = arg;
				_tmp178_ = vala_expression_get_target_type (_tmp177_);
				_tmp179_ = _tmp178_;
				_tmp180_ = vala_data_type_to_prototype_string (_tmp179_, NULL);
				_tmp181_ = _tmp180_;
				_tmp182_ = arg;
				_tmp183_ = vala_expression_get_value_type (_tmp182_);
				_tmp184_ = _tmp183_;
				_tmp185_ = vala_data_type_to_prototype_string (_tmp184_, NULL);
				_tmp186_ = _tmp185_;
				_tmp187_ = g_strdup_printf ("Argument %d: Cannot convert from `%s' to `%s'", _tmp176_ + 1, _tmp181_, _tmp186_);
				_tmp188_ = _tmp187_;
				vala_report_error (_tmp175_, _tmp188_);
				_g_free0 (_tmp188_);
				_g_free0 (_tmp186_);
				_g_free0 (_tmp181_);
				result = FALSE;
				return result;
			}
		}
	}
	_tmp189_ = arg;
	_tmp190_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp189_, VALA_TYPE_MEMBER_ACCESS) ? ((ValaMemberAccess*) _tmp189_) : NULL);
	ma = _tmp190_;
	_tmp192_ = ma;
	if (_tmp192_ != NULL) {
		ValaMemberAccess* _tmp193_;
		gboolean _tmp194_;
		gboolean _tmp195_;
		_tmp193_ = ma;
		_tmp194_ = vala_member_access_get_prototype_access (_tmp193_);
		_tmp195_ = _tmp194_;
		_tmp191_ = _tmp195_;
	} else {
		_tmp191_ = FALSE;
	}
	if (_tmp191_) {
		ValaDelegateType* deleg_type = NULL;
		ValaExpression* _tmp196_;
		ValaDataType* _tmp197_;
		ValaDataType* _tmp198_;
		ValaDelegateType* _tmp199_;
		gboolean _tmp200_ = FALSE;
		ValaDelegateType* _tmp201_;
		_tmp196_ = arg;
		_tmp197_ = vala_expression_get_target_type (_tmp196_);
		_tmp198_ = _tmp197_;
		_tmp199_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp198_, VALA_TYPE_DELEGATE_TYPE) ? ((ValaDelegateType*) _tmp198_) : NULL);
		deleg_type = _tmp199_;
		_tmp201_ = deleg_type;
		if (_tmp201_ == NULL) {
			_tmp200_ = TRUE;
		} else {
			ValaDelegateType* _tmp202_;
			ValaDelegate* _tmp203_;
			ValaDelegate* _tmp204_;
			gboolean _tmp205_;
			gboolean _tmp206_;
			_tmp202_ = deleg_type;
			_tmp203_ = vala_delegate_type_get_delegate_symbol (_tmp202_);
			_tmp204_ = _tmp203_;
			_tmp205_ = vala_delegate_get_has_target (_tmp204_);
			_tmp206_ = _tmp205_;
			_tmp200_ = _tmp206_;
		}
		if (_tmp200_) {
			ValaExpression* _tmp207_;
			ValaSourceReference* _tmp208_;
			ValaSourceReference* _tmp209_;
			ValaExpression* _tmp210_;
			ValaSymbol* _tmp211_;
			ValaSymbol* _tmp212_;
			gchar* _tmp213_;
			gchar* _tmp214_;
			gchar* _tmp215_;
			gchar* _tmp216_;
			_tmp207_ = arg;
			_tmp208_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp207_);
			_tmp209_ = _tmp208_;
			_tmp210_ = arg;
			_tmp211_ = vala_expression_get_symbol_reference (_tmp210_);
			_tmp212_ = _tmp211_;
			_tmp213_ = vala_symbol_get_full_name (_tmp212_);
			_tmp214_ = _tmp213_;
			_tmp215_ = g_strdup_printf ("Access to instance member `%s' denied", _tmp214_);
			_tmp216_ = _tmp215_;
			vala_report_error (_tmp209_, _tmp216_);
			_g_free0 (_tmp216_);
			_g_free0 (_tmp214_);
			result = FALSE;
			_vala_code_node_unref0 (deleg_type);
			_vala_code_node_unref0 (ma);
			return result;
		}
		_vala_code_node_unref0 (deleg_type);
	}
	result = TRUE;
	_vala_code_node_unref0 (ma);
	return result;
}


gboolean vala_semantic_analyzer_check_variadic_arguments (ValaSemanticAnalyzer* self, ValaIterator* arg_it, gint i, ValaSourceReference* source_reference) {
	gboolean result = FALSE;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (source_reference != NULL, FALSE);
	while (TRUE) {
		gboolean _tmp0_ = FALSE;
		ValaIterator* _tmp1_;
		ValaExpression* arg = NULL;
		ValaIterator* _tmp4_;
		gpointer _tmp5_;
		ValaExpression* _tmp6_;
		gboolean _tmp7_;
		gboolean _tmp8_;
		gint _tmp53_;
		_tmp1_ = arg_it;
		if (_tmp1_ != NULL) {
			ValaIterator* _tmp2_;
			gboolean _tmp3_;
			_tmp2_ = arg_it;
			_tmp3_ = vala_iterator_next (_tmp2_);
			_tmp0_ = _tmp3_;
		} else {
			_tmp0_ = FALSE;
		}
		if (!_tmp0_) {
			break;
		}
		_tmp4_ = arg_it;
		_tmp5_ = vala_iterator_get (_tmp4_);
		arg = (ValaExpression*) _tmp5_;
		_tmp6_ = arg;
		_tmp7_ = vala_code_node_get_error ((ValaCodeNode*) _tmp6_);
		_tmp8_ = _tmp7_;
		if (_tmp8_) {
			result = FALSE;
			_vala_code_node_unref0 (arg);
			return result;
		} else {
			ValaExpression* _tmp9_;
			ValaDataType* _tmp10_;
			ValaDataType* _tmp11_;
			_tmp9_ = arg;
			_tmp10_ = vala_expression_get_value_type (_tmp9_);
			_tmp11_ = _tmp10_;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, VALA_TYPE_SIGNAL_TYPE)) {
				ValaExpression* _tmp12_;
				ValaExpression* _tmp13_;
				ValaSourceReference* _tmp14_;
				ValaSourceReference* _tmp15_;
				_tmp12_ = arg;
				vala_code_node_set_error ((ValaCodeNode*) _tmp12_, TRUE);
				_tmp13_ = arg;
				_tmp14_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp13_);
				_tmp15_ = _tmp14_;
				vala_report_error (_tmp15_, "Cannot pass signals as arguments");
				result = FALSE;
				_vala_code_node_unref0 (arg);
				return result;
			} else {
				ValaExpression* _tmp16_;
				ValaDataType* _tmp17_;
				ValaDataType* _tmp18_;
				_tmp16_ = arg;
				_tmp17_ = vala_expression_get_value_type (_tmp16_);
				_tmp18_ = _tmp17_;
				if (_tmp18_ == NULL) {
					ValaExpression* _tmp19_;
					ValaSymbol* _tmp20_;
					ValaSymbol* _tmp21_;
					_tmp19_ = arg;
					_tmp20_ = vala_expression_get_symbol_reference (_tmp19_);
					_tmp21_ = _tmp20_;
					if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, VALA_TYPE_METHOD)) {
						ValaSourceReference* _tmp22_;
						gint _tmp23_;
						gchar* _tmp24_;
						gchar* _tmp25_;
						_tmp22_ = source_reference;
						_tmp23_ = i;
						_tmp24_ = g_strdup_printf ("Invalid type for argument %d", _tmp23_ + 1);
						_tmp25_ = _tmp24_;
						vala_report_error (_tmp22_, _tmp25_);
						_g_free0 (_tmp25_);
						result = FALSE;
						_vala_code_node_unref0 (arg);
						return result;
					}
				} else {
					gboolean _tmp26_ = FALSE;
					ValaExpression* _tmp27_;
					ValaDataType* _tmp28_;
					ValaDataType* _tmp29_;
					_tmp27_ = arg;
					_tmp28_ = vala_expression_get_target_type (_tmp27_);
					_tmp29_ = _tmp28_;
					if (_tmp29_ != NULL) {
						ValaExpression* _tmp30_;
						ValaDataType* _tmp31_;
						ValaDataType* _tmp32_;
						ValaExpression* _tmp33_;
						ValaDataType* _tmp34_;
						ValaDataType* _tmp35_;
						gboolean _tmp36_;
						_tmp30_ = arg;
						_tmp31_ = vala_expression_get_value_type (_tmp30_);
						_tmp32_ = _tmp31_;
						_tmp33_ = arg;
						_tmp34_ = vala_expression_get_target_type (_tmp33_);
						_tmp35_ = _tmp34_;
						_tmp36_ = vala_data_type_compatible (_tmp32_, _tmp35_);
						_tmp26_ = !_tmp36_;
					} else {
						_tmp26_ = FALSE;
					}
					if (_tmp26_) {
						ValaExpression* _tmp37_;
						ValaSourceReference* _tmp38_;
						ValaSourceReference* _tmp39_;
						gint _tmp40_;
						ValaExpression* _tmp41_;
						ValaDataType* _tmp42_;
						ValaDataType* _tmp43_;
						gchar* _tmp44_;
						gchar* _tmp45_;
						ValaExpression* _tmp46_;
						ValaDataType* _tmp47_;
						ValaDataType* _tmp48_;
						gchar* _tmp49_;
						gchar* _tmp50_;
						gchar* _tmp51_;
						gchar* _tmp52_;
						_tmp37_ = arg;
						_tmp38_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp37_);
						_tmp39_ = _tmp38_;
						_tmp40_ = i;
						_tmp41_ = arg;
						_tmp42_ = vala_expression_get_value_type (_tmp41_);
						_tmp43_ = _tmp42_;
						_tmp44_ = vala_code_node_to_string ((ValaCodeNode*) _tmp43_);
						_tmp45_ = _tmp44_;
						_tmp46_ = arg;
						_tmp47_ = vala_expression_get_target_type (_tmp46_);
						_tmp48_ = _tmp47_;
						_tmp49_ = vala_code_node_to_string ((ValaCodeNode*) _tmp48_);
						_tmp50_ = _tmp49_;
						_tmp51_ = g_strdup_printf ("Argument %d: Cannot convert from `%s' to `%s'", _tmp40_ + 1, _tmp45_, _tmp50_);
						_tmp52_ = _tmp51_;
						vala_report_error (_tmp39_, _tmp52_);
						_g_free0 (_tmp52_);
						_g_free0 (_tmp50_);
						_g_free0 (_tmp45_);
						result = FALSE;
						_vala_code_node_unref0 (arg);
						return result;
					}
				}
			}
		}
		_tmp53_ = i;
		i = _tmp53_ + 1;
		_vala_code_node_unref0 (arg);
	}
	result = TRUE;
	return result;
}


static gunichar string_get_char (const gchar* self, glong index) {
	gunichar result = 0U;
	glong _tmp0_;
	gunichar _tmp1_;
	g_return_val_if_fail (self != NULL, 0U);
	_tmp0_ = index;
	_tmp1_ = g_utf8_get_char (((gchar*) self) + _tmp0_);
	result = _tmp1_;
	return result;
}


gboolean vala_semantic_analyzer_check_print_format (ValaSemanticAnalyzer* self, const gchar* format, ValaIterator* arg_it, ValaSourceReference* source_reference) {
	gboolean result = FALSE;
	gboolean unsupported_format = FALSE;
	const gchar* format_it = NULL;
	const gchar* _tmp0_;
	gunichar c = 0U;
	const gchar* _tmp1_;
	gunichar _tmp2_;
	gboolean _tmp145_ = FALSE;
	gboolean _tmp146_;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (format != NULL, FALSE);
	g_return_val_if_fail (arg_it != NULL, FALSE);
	g_return_val_if_fail (source_reference != NULL, FALSE);
	unsupported_format = FALSE;
	_tmp0_ = format;
	format_it = _tmp0_;
	_tmp1_ = format_it;
	_tmp2_ = string_get_char (_tmp1_, (glong) 0);
	c = _tmp2_;
	while (TRUE) {
		gunichar _tmp3_;
		gunichar _tmp4_;
		const gchar* _tmp9_;
		const gchar* _tmp10_;
		const gchar* _tmp11_;
		gunichar _tmp12_;
		gunichar _tmp33_;
		gint length = 0;
		gunichar _tmp45_;
		ValaDataType* param_type = NULL;
		gboolean _tmp65_ = FALSE;
		gboolean _tmp66_ = FALSE;
		gunichar _tmp67_;
		gunichar _tmp132_;
		ValaDataType* _tmp137_;
		_tmp3_ = c;
		if (!(_tmp3_ != ((gunichar) '\0'))) {
			break;
		}
		_tmp4_ = c;
		if (_tmp4_ != ((gunichar) '%')) {
			const gchar* _tmp5_;
			const gchar* _tmp6_;
			const gchar* _tmp7_;
			gunichar _tmp8_;
			_tmp5_ = format_it;
			_tmp6_ = g_utf8_next_char (_tmp5_);
			format_it = _tmp6_;
			_tmp7_ = format_it;
			_tmp8_ = string_get_char (_tmp7_, (glong) 0);
			c = _tmp8_;
			continue;
		}
		_tmp9_ = format_it;
		_tmp10_ = g_utf8_next_char (_tmp9_);
		format_it = _tmp10_;
		_tmp11_ = format_it;
		_tmp12_ = string_get_char (_tmp11_, (glong) 0);
		c = _tmp12_;
		while (TRUE) {
			gboolean _tmp13_ = FALSE;
			gboolean _tmp14_ = FALSE;
			gboolean _tmp15_ = FALSE;
			gboolean _tmp16_ = FALSE;
			gunichar _tmp17_;
			const gchar* _tmp22_;
			const gchar* _tmp23_;
			const gchar* _tmp24_;
			gunichar _tmp25_;
			_tmp17_ = c;
			if (_tmp17_ == ((gunichar) '#')) {
				_tmp16_ = TRUE;
			} else {
				gunichar _tmp18_;
				_tmp18_ = c;
				_tmp16_ = _tmp18_ == ((gunichar) '0');
			}
			if (_tmp16_) {
				_tmp15_ = TRUE;
			} else {
				gunichar _tmp19_;
				_tmp19_ = c;
				_tmp15_ = _tmp19_ == ((gunichar) '-');
			}
			if (_tmp15_) {
				_tmp14_ = TRUE;
			} else {
				gunichar _tmp20_;
				_tmp20_ = c;
				_tmp14_ = _tmp20_ == ((gunichar) ' ');
			}
			if (_tmp14_) {
				_tmp13_ = TRUE;
			} else {
				gunichar _tmp21_;
				_tmp21_ = c;
				_tmp13_ = _tmp21_ == ((gunichar) '+');
			}
			if (!_tmp13_) {
				break;
			}
			_tmp22_ = format_it;
			_tmp23_ = g_utf8_next_char (_tmp22_);
			format_it = _tmp23_;
			_tmp24_ = format_it;
			_tmp25_ = string_get_char (_tmp24_, (glong) 0);
			c = _tmp25_;
		}
		while (TRUE) {
			gboolean _tmp26_ = FALSE;
			gunichar _tmp27_;
			const gchar* _tmp29_;
			const gchar* _tmp30_;
			const gchar* _tmp31_;
			gunichar _tmp32_;
			_tmp27_ = c;
			if (_tmp27_ >= ((gunichar) '0')) {
				gunichar _tmp28_;
				_tmp28_ = c;
				_tmp26_ = _tmp28_ <= ((gunichar) '9');
			} else {
				_tmp26_ = FALSE;
			}
			if (!_tmp26_) {
				break;
			}
			_tmp29_ = format_it;
			_tmp30_ = g_utf8_next_char (_tmp29_);
			format_it = _tmp30_;
			_tmp31_ = format_it;
			_tmp32_ = string_get_char (_tmp31_, (glong) 0);
			c = _tmp32_;
		}
		_tmp33_ = c;
		if (_tmp33_ == ((gunichar) '.')) {
			const gchar* _tmp34_;
			const gchar* _tmp35_;
			const gchar* _tmp36_;
			gunichar _tmp37_;
			_tmp34_ = format_it;
			_tmp35_ = g_utf8_next_char (_tmp34_);
			format_it = _tmp35_;
			_tmp36_ = format_it;
			_tmp37_ = string_get_char (_tmp36_, (glong) 0);
			c = _tmp37_;
			while (TRUE) {
				gboolean _tmp38_ = FALSE;
				gunichar _tmp39_;
				const gchar* _tmp41_;
				const gchar* _tmp42_;
				const gchar* _tmp43_;
				gunichar _tmp44_;
				_tmp39_ = c;
				if (_tmp39_ >= ((gunichar) '0')) {
					gunichar _tmp40_;
					_tmp40_ = c;
					_tmp38_ = _tmp40_ <= ((gunichar) '9');
				} else {
					_tmp38_ = FALSE;
				}
				if (!_tmp38_) {
					break;
				}
				_tmp41_ = format_it;
				_tmp42_ = g_utf8_next_char (_tmp41_);
				format_it = _tmp42_;
				_tmp43_ = format_it;
				_tmp44_ = string_get_char (_tmp43_, (glong) 0);
				c = _tmp44_;
			}
		}
		length = 0;
		_tmp45_ = c;
		if (_tmp45_ == ((gunichar) 'h')) {
			const gchar* _tmp46_;
			const gchar* _tmp47_;
			const gchar* _tmp48_;
			gunichar _tmp49_;
			gunichar _tmp50_;
			length = -1;
			_tmp46_ = format_it;
			_tmp47_ = g_utf8_next_char (_tmp46_);
			format_it = _tmp47_;
			_tmp48_ = format_it;
			_tmp49_ = string_get_char (_tmp48_, (glong) 0);
			c = _tmp49_;
			_tmp50_ = c;
			if (_tmp50_ == ((gunichar) 'h')) {
				const gchar* _tmp51_;
				const gchar* _tmp52_;
				const gchar* _tmp53_;
				gunichar _tmp54_;
				length = -2;
				_tmp51_ = format_it;
				_tmp52_ = g_utf8_next_char (_tmp51_);
				format_it = _tmp52_;
				_tmp53_ = format_it;
				_tmp54_ = string_get_char (_tmp53_, (glong) 0);
				c = _tmp54_;
			}
		} else {
			gunichar _tmp55_;
			_tmp55_ = c;
			if (_tmp55_ == ((gunichar) 'l')) {
				const gchar* _tmp56_;
				const gchar* _tmp57_;
				const gchar* _tmp58_;
				gunichar _tmp59_;
				length = 1;
				_tmp56_ = format_it;
				_tmp57_ = g_utf8_next_char (_tmp56_);
				format_it = _tmp57_;
				_tmp58_ = format_it;
				_tmp59_ = string_get_char (_tmp58_, (glong) 0);
				c = _tmp59_;
			} else {
				gunichar _tmp60_;
				_tmp60_ = c;
				if (_tmp60_ == ((gunichar) 'z')) {
					const gchar* _tmp61_;
					const gchar* _tmp62_;
					const gchar* _tmp63_;
					gunichar _tmp64_;
					length = 2;
					_tmp61_ = format_it;
					_tmp62_ = g_utf8_next_char (_tmp61_);
					format_it = _tmp62_;
					_tmp63_ = format_it;
					_tmp64_ = string_get_char (_tmp63_, (glong) 0);
					c = _tmp64_;
				}
			}
		}
		param_type = NULL;
		_tmp67_ = c;
		if (_tmp67_ == ((gunichar) 'd')) {
			_tmp66_ = TRUE;
		} else {
			gunichar _tmp68_;
			_tmp68_ = c;
			_tmp66_ = _tmp68_ == ((gunichar) 'i');
		}
		if (_tmp66_) {
			_tmp65_ = TRUE;
		} else {
			gunichar _tmp69_;
			_tmp69_ = c;
			_tmp65_ = _tmp69_ == ((gunichar) 'c');
		}
		if (_tmp65_) {
			gint _tmp70_;
			_tmp70_ = length;
			if (_tmp70_ == -2) {
				ValaDataType* _tmp71_;
				ValaDataType* _tmp72_;
				_tmp71_ = self->int8_type;
				_tmp72_ = _vala_code_node_ref0 (_tmp71_);
				_vala_code_node_unref0 (param_type);
				param_type = _tmp72_;
			} else {
				gint _tmp73_;
				_tmp73_ = length;
				if (_tmp73_ == -1) {
					ValaDataType* _tmp74_;
					ValaDataType* _tmp75_;
					_tmp74_ = self->short_type;
					_tmp75_ = _vala_code_node_ref0 (_tmp74_);
					_vala_code_node_unref0 (param_type);
					param_type = _tmp75_;
				} else {
					gint _tmp76_;
					_tmp76_ = length;
					if (_tmp76_ == 0) {
						ValaDataType* _tmp77_;
						ValaDataType* _tmp78_;
						_tmp77_ = self->int_type;
						_tmp78_ = _vala_code_node_ref0 (_tmp77_);
						_vala_code_node_unref0 (param_type);
						param_type = _tmp78_;
					} else {
						gint _tmp79_;
						_tmp79_ = length;
						if (_tmp79_ == 1) {
							ValaDataType* _tmp80_;
							ValaDataType* _tmp81_;
							_tmp80_ = self->long_type;
							_tmp81_ = _vala_code_node_ref0 (_tmp80_);
							_vala_code_node_unref0 (param_type);
							param_type = _tmp81_;
						} else {
							gint _tmp82_;
							_tmp82_ = length;
							if (_tmp82_ == 2) {
								ValaDataType* _tmp83_;
								ValaDataType* _tmp84_;
								_tmp83_ = self->ssize_t_type;
								_tmp84_ = _vala_code_node_ref0 (_tmp83_);
								_vala_code_node_unref0 (param_type);
								param_type = _tmp84_;
							}
						}
					}
				}
			}
		} else {
			gboolean _tmp85_ = FALSE;
			gboolean _tmp86_ = FALSE;
			gboolean _tmp87_ = FALSE;
			gunichar _tmp88_;
			_tmp88_ = c;
			if (_tmp88_ == ((gunichar) 'o')) {
				_tmp87_ = TRUE;
			} else {
				gunichar _tmp89_;
				_tmp89_ = c;
				_tmp87_ = _tmp89_ == ((gunichar) 'u');
			}
			if (_tmp87_) {
				_tmp86_ = TRUE;
			} else {
				gunichar _tmp90_;
				_tmp90_ = c;
				_tmp86_ = _tmp90_ == ((gunichar) 'x');
			}
			if (_tmp86_) {
				_tmp85_ = TRUE;
			} else {
				gunichar _tmp91_;
				_tmp91_ = c;
				_tmp85_ = _tmp91_ == ((gunichar) 'X');
			}
			if (_tmp85_) {
				gint _tmp92_;
				_tmp92_ = length;
				if (_tmp92_ == -2) {
					ValaDataType* _tmp93_;
					ValaDataType* _tmp94_;
					_tmp93_ = self->uchar_type;
					_tmp94_ = _vala_code_node_ref0 (_tmp93_);
					_vala_code_node_unref0 (param_type);
					param_type = _tmp94_;
				} else {
					gint _tmp95_;
					_tmp95_ = length;
					if (_tmp95_ == -1) {
						ValaDataType* _tmp96_;
						ValaDataType* _tmp97_;
						_tmp96_ = self->ushort_type;
						_tmp97_ = _vala_code_node_ref0 (_tmp96_);
						_vala_code_node_unref0 (param_type);
						param_type = _tmp97_;
					} else {
						gint _tmp98_;
						_tmp98_ = length;
						if (_tmp98_ == 0) {
							ValaDataType* _tmp99_;
							ValaDataType* _tmp100_;
							_tmp99_ = self->uint_type;
							_tmp100_ = _vala_code_node_ref0 (_tmp99_);
							_vala_code_node_unref0 (param_type);
							param_type = _tmp100_;
						} else {
							gint _tmp101_;
							_tmp101_ = length;
							if (_tmp101_ == 1) {
								ValaDataType* _tmp102_;
								ValaDataType* _tmp103_;
								_tmp102_ = self->ulong_type;
								_tmp103_ = _vala_code_node_ref0 (_tmp102_);
								_vala_code_node_unref0 (param_type);
								param_type = _tmp103_;
							} else {
								gint _tmp104_;
								_tmp104_ = length;
								if (_tmp104_ == 2) {
									ValaDataType* _tmp105_;
									ValaDataType* _tmp106_;
									_tmp105_ = self->size_t_type;
									_tmp106_ = _vala_code_node_ref0 (_tmp105_);
									_vala_code_node_unref0 (param_type);
									param_type = _tmp106_;
								}
							}
						}
					}
				}
			} else {
				gboolean _tmp107_ = FALSE;
				gboolean _tmp108_ = FALSE;
				gboolean _tmp109_ = FALSE;
				gboolean _tmp110_ = FALSE;
				gboolean _tmp111_ = FALSE;
				gboolean _tmp112_ = FALSE;
				gboolean _tmp113_ = FALSE;
				gunichar _tmp114_;
				_tmp114_ = c;
				if (_tmp114_ == ((gunichar) 'e')) {
					_tmp113_ = TRUE;
				} else {
					gunichar _tmp115_;
					_tmp115_ = c;
					_tmp113_ = _tmp115_ == ((gunichar) 'E');
				}
				if (_tmp113_) {
					_tmp112_ = TRUE;
				} else {
					gunichar _tmp116_;
					_tmp116_ = c;
					_tmp112_ = _tmp116_ == ((gunichar) 'f');
				}
				if (_tmp112_) {
					_tmp111_ = TRUE;
				} else {
					gunichar _tmp117_;
					_tmp117_ = c;
					_tmp111_ = _tmp117_ == ((gunichar) 'F');
				}
				if (_tmp111_) {
					_tmp110_ = TRUE;
				} else {
					gunichar _tmp118_;
					_tmp118_ = c;
					_tmp110_ = _tmp118_ == ((gunichar) 'g');
				}
				if (_tmp110_) {
					_tmp109_ = TRUE;
				} else {
					gunichar _tmp119_;
					_tmp119_ = c;
					_tmp109_ = _tmp119_ == ((gunichar) 'G');
				}
				if (_tmp109_) {
					_tmp108_ = TRUE;
				} else {
					gunichar _tmp120_;
					_tmp120_ = c;
					_tmp108_ = _tmp120_ == ((gunichar) 'a');
				}
				if (_tmp108_) {
					_tmp107_ = TRUE;
				} else {
					gunichar _tmp121_;
					_tmp121_ = c;
					_tmp107_ = _tmp121_ == ((gunichar) 'A');
				}
				if (_tmp107_) {
					ValaDataType* _tmp122_;
					ValaDataType* _tmp123_;
					_tmp122_ = self->double_type;
					_tmp123_ = _vala_code_node_ref0 (_tmp122_);
					_vala_code_node_unref0 (param_type);
					param_type = _tmp123_;
				} else {
					gunichar _tmp124_;
					_tmp124_ = c;
					if (_tmp124_ == ((gunichar) 's')) {
						ValaDataType* _tmp125_;
						ValaDataType* _tmp126_;
						_tmp125_ = self->string_type;
						_tmp126_ = _vala_code_node_ref0 (_tmp125_);
						_vala_code_node_unref0 (param_type);
						param_type = _tmp126_;
					} else {
						gunichar _tmp127_;
						_tmp127_ = c;
						if (_tmp127_ == ((gunichar) 'p')) {
							ValaVoidType* _tmp128_;
							ValaVoidType* _tmp129_;
							ValaPointerType* _tmp130_;
							_tmp128_ = vala_void_type_new (NULL);
							_tmp129_ = _tmp128_;
							_tmp130_ = vala_pointer_type_new ((ValaDataType*) _tmp129_, NULL);
							_vala_code_node_unref0 (param_type);
							param_type = (ValaDataType*) _tmp130_;
							_vala_code_node_unref0 (_tmp129_);
						} else {
							gunichar _tmp131_;
							_tmp131_ = c;
							if (_tmp131_ == ((gunichar) '%')) {
							} else {
								unsupported_format = TRUE;
								_vala_code_node_unref0 (param_type);
								break;
							}
						}
					}
				}
			}
		}
		_tmp132_ = c;
		if (_tmp132_ != ((gunichar) '\0')) {
			const gchar* _tmp133_;
			const gchar* _tmp134_;
			const gchar* _tmp135_;
			gunichar _tmp136_;
			_tmp133_ = format_it;
			_tmp134_ = g_utf8_next_char (_tmp133_);
			format_it = _tmp134_;
			_tmp135_ = format_it;
			_tmp136_ = string_get_char (_tmp135_, (glong) 0);
			c = _tmp136_;
		}
		_tmp137_ = param_type;
		if (_tmp137_ != NULL) {
			ValaIterator* _tmp138_;
			gboolean _tmp139_;
			_tmp138_ = arg_it;
			_tmp139_ = vala_iterator_next (_tmp138_);
			if (_tmp139_) {
				ValaExpression* arg = NULL;
				ValaIterator* _tmp140_;
				gpointer _tmp141_;
				ValaExpression* _tmp142_;
				ValaDataType* _tmp143_;
				_tmp140_ = arg_it;
				_tmp141_ = vala_iterator_get (_tmp140_);
				arg = (ValaExpression*) _tmp141_;
				_tmp142_ = arg;
				_tmp143_ = param_type;
				vala_expression_set_target_type (_tmp142_, _tmp143_);
				_vala_code_node_unref0 (arg);
			} else {
				ValaSourceReference* _tmp144_;
				_tmp144_ = source_reference;
				vala_report_error (_tmp144_, "Too few arguments for specified format");
				result = FALSE;
				_vala_code_node_unref0 (param_type);
				return result;
			}
		}
		_vala_code_node_unref0 (param_type);
	}
	_tmp146_ = unsupported_format;
	if (!_tmp146_) {
		ValaIterator* _tmp147_;
		gboolean _tmp148_;
		_tmp147_ = arg_it;
		_tmp148_ = vala_iterator_next (_tmp147_);
		_tmp145_ = _tmp148_;
	} else {
		_tmp145_ = FALSE;
	}
	if (_tmp145_) {
		ValaSourceReference* _tmp149_;
		_tmp149_ = source_reference;
		vala_report_error (_tmp149_, "Too many arguments for specified format");
		result = FALSE;
		return result;
	}
	result = TRUE;
	return result;
}


static ValaDataType* vala_semantic_analyzer_get_instance_base_type (ValaDataType* instance_type, ValaDataType* base_type, ValaCodeNode* node_reference) {
	ValaDataType* result = NULL;
	ValaDataType* instance_base_type = NULL;
	ValaDataType* _tmp0_;
	ValaTypeSymbol* _tmp1_;
	ValaTypeSymbol* _tmp2_;
	g_return_val_if_fail (instance_type != NULL, NULL);
	g_return_val_if_fail (base_type != NULL, NULL);
	g_return_val_if_fail (node_reference != NULL, NULL);
	_tmp0_ = base_type;
	_tmp1_ = vala_data_type_get_data_type (_tmp0_);
	_tmp2_ = _tmp1_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, VALA_TYPE_OBJECT_TYPE_SYMBOL)) {
		ValaDataType* _tmp3_;
		ValaTypeSymbol* _tmp4_;
		ValaTypeSymbol* _tmp5_;
		ValaObjectType* _tmp6_;
		_tmp3_ = base_type;
		_tmp4_ = vala_data_type_get_data_type (_tmp3_);
		_tmp5_ = _tmp4_;
		_tmp6_ = vala_object_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, VALA_TYPE_OBJECT_TYPE_SYMBOL, ValaObjectTypeSymbol));
		_vala_code_node_unref0 (instance_base_type);
		instance_base_type = (ValaDataType*) _tmp6_;
	} else {
		ValaDataType* _tmp7_;
		ValaTypeSymbol* _tmp8_;
		ValaTypeSymbol* _tmp9_;
		_tmp7_ = base_type;
		_tmp8_ = vala_data_type_get_data_type (_tmp7_);
		_tmp9_ = _tmp8_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, VALA_TYPE_STRUCT)) {
			ValaDataType* _tmp10_;
			ValaTypeSymbol* _tmp11_;
			ValaTypeSymbol* _tmp12_;
			ValaStructValueType* _tmp13_;
			_tmp10_ = base_type;
			_tmp11_ = vala_data_type_get_data_type (_tmp10_);
			_tmp12_ = _tmp11_;
			_tmp13_ = vala_struct_value_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, VALA_TYPE_STRUCT, ValaStruct));
			_vala_code_node_unref0 (instance_base_type);
			instance_base_type = (ValaDataType*) _tmp13_;
		} else {
			g_assert_not_reached ();
		}
	}
	{
		ValaList* _type_arg_list = NULL;
		ValaDataType* _tmp14_;
		ValaList* _tmp15_;
		gint _type_arg_size = 0;
		ValaList* _tmp16_;
		gint _tmp17_;
		gint _tmp18_;
		gint _type_arg_index = 0;
		_tmp14_ = base_type;
		_tmp15_ = vala_data_type_get_type_arguments (_tmp14_);
		_type_arg_list = _tmp15_;
		_tmp16_ = _type_arg_list;
		_tmp17_ = vala_collection_get_size ((ValaCollection*) _tmp16_);
		_tmp18_ = _tmp17_;
		_type_arg_size = _tmp18_;
		_type_arg_index = -1;
		while (TRUE) {
			gint _tmp19_;
			gint _tmp20_;
			gint _tmp21_;
			ValaDataType* type_arg = NULL;
			ValaList* _tmp22_;
			gint _tmp23_;
			gpointer _tmp24_;
			ValaDataType* _tmp25_;
			ValaDataType* _tmp26_;
			ValaCodeNode* _tmp27_;
			ValaDataType* _tmp28_;
			ValaDataType* _tmp29_;
			ValaDataType* _tmp30_;
			_tmp19_ = _type_arg_index;
			_type_arg_index = _tmp19_ + 1;
			_tmp20_ = _type_arg_index;
			_tmp21_ = _type_arg_size;
			if (!(_tmp20_ < _tmp21_)) {
				break;
			}
			_tmp22_ = _type_arg_list;
			_tmp23_ = _type_arg_index;
			_tmp24_ = vala_list_get (_tmp22_, _tmp23_);
			type_arg = (ValaDataType*) _tmp24_;
			_tmp25_ = type_arg;
			_tmp26_ = instance_type;
			_tmp27_ = node_reference;
			_tmp28_ = vala_data_type_get_actual_type (_tmp25_, _tmp26_, NULL, _tmp27_);
			_vala_code_node_unref0 (type_arg);
			type_arg = _tmp28_;
			_tmp29_ = instance_base_type;
			_tmp30_ = type_arg;
			vala_data_type_add_type_argument (_tmp29_, _tmp30_);
			_vala_code_node_unref0 (type_arg);
		}
		_vala_iterable_unref0 (_type_arg_list);
	}
	result = instance_base_type;
	return result;
}


G_GNUC_INTERNAL ValaDataType* vala_semantic_analyzer_get_instance_base_type_for_member (ValaDataType* derived_instance_type, ValaTypeSymbol* type_symbol, ValaCodeNode* node_reference) {
	ValaDataType* result = NULL;
	ValaDataType* instance_type = NULL;
	ValaDataType* _tmp0_;
	ValaDataType* _tmp1_;
	gboolean _tmp9_ = FALSE;
	ValaDataType* _tmp10_;
	ValaDataType* instance_base_type = NULL;
	ValaDataType* _tmp19_;
	ValaTypeSymbol* _tmp20_;
	ValaTypeSymbol* _tmp21_;
	g_return_val_if_fail (derived_instance_type != NULL, NULL);
	g_return_val_if_fail (type_symbol != NULL, NULL);
	g_return_val_if_fail (node_reference != NULL, NULL);
	_tmp0_ = derived_instance_type;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	instance_type = _tmp1_;
	while (TRUE) {
		ValaDataType* _tmp2_;
		ValaPointerType* instance_pointer_type = NULL;
		ValaDataType* _tmp3_;
		ValaPointerType* _tmp4_;
		ValaPointerType* _tmp5_;
		ValaDataType* _tmp6_;
		ValaDataType* _tmp7_;
		ValaDataType* _tmp8_;
		_tmp2_ = instance_type;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, VALA_TYPE_POINTER_TYPE)) {
			break;
		}
		_tmp3_ = instance_type;
		_tmp4_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, VALA_TYPE_POINTER_TYPE, ValaPointerType));
		instance_pointer_type = _tmp4_;
		_tmp5_ = instance_pointer_type;
		_tmp6_ = vala_pointer_type_get_base_type (_tmp5_);
		_tmp7_ = _tmp6_;
		_tmp8_ = _vala_code_node_ref0 (_tmp7_);
		_vala_code_node_unref0 (instance_type);
		instance_type = _tmp8_;
		_vala_code_node_unref0 (instance_pointer_type);
	}
	_tmp10_ = instance_type;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, VALA_TYPE_DELEGATE_TYPE)) {
		ValaDataType* _tmp11_;
		ValaDelegate* _tmp12_;
		ValaDelegate* _tmp13_;
		ValaTypeSymbol* _tmp14_;
		_tmp11_ = instance_type;
		_tmp12_ = vala_delegate_type_get_delegate_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, VALA_TYPE_DELEGATE_TYPE, ValaDelegateType));
		_tmp13_ = _tmp12_;
		_tmp14_ = type_symbol;
		_tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, VALA_TYPE_TYPESYMBOL, ValaTypeSymbol) == _tmp14_;
	} else {
		_tmp9_ = FALSE;
	}
	if (_tmp9_) {
		result = instance_type;
		return result;
	} else {
		ValaDataType* _tmp15_;
		ValaTypeSymbol* _tmp16_;
		ValaTypeSymbol* _tmp17_;
		ValaTypeSymbol* _tmp18_;
		_tmp15_ = instance_type;
		_tmp16_ = vala_data_type_get_data_type (_tmp15_);
		_tmp17_ = _tmp16_;
		_tmp18_ = type_symbol;
		if (_tmp17_ == _tmp18_) {
			result = instance_type;
			return result;
		}
	}
	instance_base_type = NULL;
	_tmp19_ = instance_type;
	_tmp20_ = vala_data_type_get_data_type (_tmp19_);
	_tmp21_ = _tmp20_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, VALA_TYPE_CLASS)) {
		ValaClass* cl = NULL;
		ValaDataType* _tmp22_;
		ValaTypeSymbol* _tmp23_;
		ValaTypeSymbol* _tmp24_;
		ValaClass* _tmp25_;
		ValaDataType* _tmp49_;
		_tmp22_ = instance_type;
		_tmp23_ = vala_data_type_get_data_type (_tmp22_);
		_tmp24_ = _tmp23_;
		_tmp25_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, VALA_TYPE_CLASS, ValaClass));
		cl = _tmp25_;
		{
			ValaList* _base_type_list = NULL;
			ValaClass* _tmp26_;
			ValaList* _tmp27_;
			gint _base_type_size = 0;
			ValaList* _tmp28_;
			gint _tmp29_;
			gint _tmp30_;
			gint _base_type_index = 0;
			_tmp26_ = cl;
			_tmp27_ = vala_class_get_base_types (_tmp26_);
			_base_type_list = _tmp27_;
			_tmp28_ = _base_type_list;
			_tmp29_ = vala_collection_get_size ((ValaCollection*) _tmp28_);
			_tmp30_ = _tmp29_;
			_base_type_size = _tmp30_;
			_base_type_index = -1;
			while (TRUE) {
				gint _tmp31_;
				gint _tmp32_;
				gint _tmp33_;
				ValaDataType* base_type = NULL;
				ValaList* _tmp34_;
				gint _tmp35_;
				gpointer _tmp36_;
				ValaDataType* _tmp37_;
				ValaTypeSymbol* _tmp38_;
				ValaTypeSymbol* _tmp39_;
				_tmp31_ = _base_type_index;
				_base_type_index = _tmp31_ + 1;
				_tmp32_ = _base_type_index;
				_tmp33_ = _base_type_size;
				if (!(_tmp32_ < _tmp33_)) {
					break;
				}
				_tmp34_ = _base_type_list;
				_tmp35_ = _base_type_index;
				_tmp36_ = vala_list_get (_tmp34_, _tmp35_);
				base_type = (ValaDataType*) _tmp36_;
				_tmp37_ = base_type;
				_tmp38_ = vala_data_type_get_data_type (_tmp37_);
				_tmp39_ = _tmp38_;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp39_, VALA_TYPE_INTERFACE)) {
					ValaDataType* _tmp40_;
					ValaDataType* _tmp41_;
					ValaCodeNode* _tmp42_;
					ValaDataType* _tmp43_;
					ValaDataType* _tmp44_;
					ValaTypeSymbol* _tmp45_;
					ValaCodeNode* _tmp46_;
					ValaDataType* _tmp47_;
					ValaDataType* _tmp48_;
					_tmp40_ = instance_type;
					_tmp41_ = base_type;
					_tmp42_ = node_reference;
					_tmp43_ = vala_semantic_analyzer_get_instance_base_type (_tmp40_, _tmp41_, _tmp42_);
					_tmp44_ = _tmp43_;
					_tmp45_ = type_symbol;
					_tmp46_ = node_reference;
					_tmp47_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp44_, _tmp45_, _tmp46_);
					_vala_code_node_unref0 (instance_base_type);
					instance_base_type = _tmp47_;
					_vala_code_node_unref0 (_tmp44_);
					_tmp48_ = instance_base_type;
					if (_tmp48_ != NULL) {
						result = instance_base_type;
						_vala_code_node_unref0 (base_type);
						_vala_iterable_unref0 (_base_type_list);
						_vala_code_node_unref0 (cl);
						_vala_code_node_unref0 (instance_type);
						return result;
					}
				}
				_vala_code_node_unref0 (base_type);
			}
			_vala_iterable_unref0 (_base_type_list);
		}
		_tmp49_ = instance_base_type;
		if (_tmp49_ == NULL) {
			{
				ValaList* _base_type_list = NULL;
				ValaClass* _tmp50_;
				ValaList* _tmp51_;
				gint _base_type_size = 0;
				ValaList* _tmp52_;
				gint _tmp53_;
				gint _tmp54_;
				gint _base_type_index = 0;
				_tmp50_ = cl;
				_tmp51_ = vala_class_get_base_types (_tmp50_);
				_base_type_list = _tmp51_;
				_tmp52_ = _base_type_list;
				_tmp53_ = vala_collection_get_size ((ValaCollection*) _tmp52_);
				_tmp54_ = _tmp53_;
				_base_type_size = _tmp54_;
				_base_type_index = -1;
				while (TRUE) {
					gint _tmp55_;
					gint _tmp56_;
					gint _tmp57_;
					ValaDataType* base_type = NULL;
					ValaList* _tmp58_;
					gint _tmp59_;
					gpointer _tmp60_;
					ValaDataType* _tmp61_;
					ValaTypeSymbol* _tmp62_;
					ValaTypeSymbol* _tmp63_;
					_tmp55_ = _base_type_index;
					_base_type_index = _tmp55_ + 1;
					_tmp56_ = _base_type_index;
					_tmp57_ = _base_type_size;
					if (!(_tmp56_ < _tmp57_)) {
						break;
					}
					_tmp58_ = _base_type_list;
					_tmp59_ = _base_type_index;
					_tmp60_ = vala_list_get (_tmp58_, _tmp59_);
					base_type = (ValaDataType*) _tmp60_;
					_tmp61_ = base_type;
					_tmp62_ = vala_data_type_get_data_type (_tmp61_);
					_tmp63_ = _tmp62_;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp63_, VALA_TYPE_CLASS)) {
						ValaDataType* _tmp64_;
						ValaDataType* _tmp65_;
						ValaCodeNode* _tmp66_;
						ValaDataType* _tmp67_;
						ValaDataType* _tmp68_;
						ValaTypeSymbol* _tmp69_;
						ValaCodeNode* _tmp70_;
						ValaDataType* _tmp71_;
						ValaDataType* _tmp72_;
						_tmp64_ = instance_type;
						_tmp65_ = base_type;
						_tmp66_ = node_reference;
						_tmp67_ = vala_semantic_analyzer_get_instance_base_type (_tmp64_, _tmp65_, _tmp66_);
						_tmp68_ = _tmp67_;
						_tmp69_ = type_symbol;
						_tmp70_ = node_reference;
						_tmp71_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp68_, _tmp69_, _tmp70_);
						_vala_code_node_unref0 (instance_base_type);
						instance_base_type = _tmp71_;
						_vala_code_node_unref0 (_tmp68_);
						_tmp72_ = instance_base_type;
						if (_tmp72_ != NULL) {
							result = instance_base_type;
							_vala_code_node_unref0 (base_type);
							_vala_iterable_unref0 (_base_type_list);
							_vala_code_node_unref0 (cl);
							_vala_code_node_unref0 (instance_type);
							return result;
						}
					}
					_vala_code_node_unref0 (base_type);
				}
				_vala_iterable_unref0 (_base_type_list);
			}
		}
		_vala_code_node_unref0 (cl);
	} else {
		ValaDataType* _tmp73_;
		ValaTypeSymbol* _tmp74_;
		ValaTypeSymbol* _tmp75_;
		_tmp73_ = instance_type;
		_tmp74_ = vala_data_type_get_data_type (_tmp73_);
		_tmp75_ = _tmp74_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp75_, VALA_TYPE_STRUCT)) {
			ValaStruct* st = NULL;
			ValaDataType* _tmp76_;
			ValaTypeSymbol* _tmp77_;
			ValaTypeSymbol* _tmp78_;
			ValaStruct* _tmp79_;
			ValaStruct* _tmp80_;
			ValaDataType* _tmp81_;
			ValaDataType* _tmp82_;
			_tmp76_ = instance_type;
			_tmp77_ = vala_data_type_get_data_type (_tmp76_);
			_tmp78_ = _tmp77_;
			_tmp79_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, VALA_TYPE_STRUCT, ValaStruct));
			st = _tmp79_;
			_tmp80_ = st;
			_tmp81_ = vala_struct_get_base_type (_tmp80_);
			_tmp82_ = _tmp81_;
			if (_tmp82_ != NULL) {
				ValaDataType* _tmp83_;
				ValaStruct* _tmp84_;
				ValaDataType* _tmp85_;
				ValaDataType* _tmp86_;
				ValaCodeNode* _tmp87_;
				ValaDataType* _tmp88_;
				ValaDataType* _tmp89_;
				ValaTypeSymbol* _tmp90_;
				ValaCodeNode* _tmp91_;
				ValaDataType* _tmp92_;
				ValaDataType* _tmp93_;
				_tmp83_ = instance_type;
				_tmp84_ = st;
				_tmp85_ = vala_struct_get_base_type (_tmp84_);
				_tmp86_ = _tmp85_;
				_tmp87_ = node_reference;
				_tmp88_ = vala_semantic_analyzer_get_instance_base_type (_tmp83_, _tmp86_, _tmp87_);
				_tmp89_ = _tmp88_;
				_tmp90_ = type_symbol;
				_tmp91_ = node_reference;
				_tmp92_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp89_, _tmp90_, _tmp91_);
				_vala_code_node_unref0 (instance_base_type);
				instance_base_type = _tmp92_;
				_vala_code_node_unref0 (_tmp89_);
				_tmp93_ = instance_base_type;
				if (_tmp93_ != NULL) {
					result = instance_base_type;
					_vala_code_node_unref0 (st);
					_vala_code_node_unref0 (instance_type);
					return result;
				}
			}
			_vala_code_node_unref0 (st);
		} else {
			ValaDataType* _tmp94_;
			ValaTypeSymbol* _tmp95_;
			ValaTypeSymbol* _tmp96_;
			_tmp94_ = instance_type;
			_tmp95_ = vala_data_type_get_data_type (_tmp94_);
			_tmp96_ = _tmp95_;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp96_, VALA_TYPE_INTERFACE)) {
				ValaInterface* iface = NULL;
				ValaDataType* _tmp97_;
				ValaTypeSymbol* _tmp98_;
				ValaTypeSymbol* _tmp99_;
				ValaInterface* _tmp100_;
				ValaDataType* _tmp124_;
				_tmp97_ = instance_type;
				_tmp98_ = vala_data_type_get_data_type (_tmp97_);
				_tmp99_ = _tmp98_;
				_tmp100_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, VALA_TYPE_INTERFACE, ValaInterface));
				iface = _tmp100_;
				{
					ValaList* _prerequisite_list = NULL;
					ValaInterface* _tmp101_;
					ValaList* _tmp102_;
					gint _prerequisite_size = 0;
					ValaList* _tmp103_;
					gint _tmp104_;
					gint _tmp105_;
					gint _prerequisite_index = 0;
					_tmp101_ = iface;
					_tmp102_ = vala_interface_get_prerequisites (_tmp101_);
					_prerequisite_list = _tmp102_;
					_tmp103_ = _prerequisite_list;
					_tmp104_ = vala_collection_get_size ((ValaCollection*) _tmp103_);
					_tmp105_ = _tmp104_;
					_prerequisite_size = _tmp105_;
					_prerequisite_index = -1;
					while (TRUE) {
						gint _tmp106_;
						gint _tmp107_;
						gint _tmp108_;
						ValaDataType* prerequisite = NULL;
						ValaList* _tmp109_;
						gint _tmp110_;
						gpointer _tmp111_;
						ValaDataType* _tmp112_;
						ValaTypeSymbol* _tmp113_;
						ValaTypeSymbol* _tmp114_;
						_tmp106_ = _prerequisite_index;
						_prerequisite_index = _tmp106_ + 1;
						_tmp107_ = _prerequisite_index;
						_tmp108_ = _prerequisite_size;
						if (!(_tmp107_ < _tmp108_)) {
							break;
						}
						_tmp109_ = _prerequisite_list;
						_tmp110_ = _prerequisite_index;
						_tmp111_ = vala_list_get (_tmp109_, _tmp110_);
						prerequisite = (ValaDataType*) _tmp111_;
						_tmp112_ = prerequisite;
						_tmp113_ = vala_data_type_get_data_type (_tmp112_);
						_tmp114_ = _tmp113_;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp114_, VALA_TYPE_INTERFACE)) {
							ValaDataType* _tmp115_;
							ValaDataType* _tmp116_;
							ValaCodeNode* _tmp117_;
							ValaDataType* _tmp118_;
							ValaDataType* _tmp119_;
							ValaTypeSymbol* _tmp120_;
							ValaCodeNode* _tmp121_;
							ValaDataType* _tmp122_;
							ValaDataType* _tmp123_;
							_tmp115_ = instance_type;
							_tmp116_ = prerequisite;
							_tmp117_ = node_reference;
							_tmp118_ = vala_semantic_analyzer_get_instance_base_type (_tmp115_, _tmp116_, _tmp117_);
							_tmp119_ = _tmp118_;
							_tmp120_ = type_symbol;
							_tmp121_ = node_reference;
							_tmp122_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp119_, _tmp120_, _tmp121_);
							_vala_code_node_unref0 (instance_base_type);
							instance_base_type = _tmp122_;
							_vala_code_node_unref0 (_tmp119_);
							_tmp123_ = instance_base_type;
							if (_tmp123_ != NULL) {
								result = instance_base_type;
								_vala_code_node_unref0 (prerequisite);
								_vala_iterable_unref0 (_prerequisite_list);
								_vala_code_node_unref0 (iface);
								_vala_code_node_unref0 (instance_type);
								return result;
							}
						}
						_vala_code_node_unref0 (prerequisite);
					}
					_vala_iterable_unref0 (_prerequisite_list);
				}
				_tmp124_ = instance_base_type;
				if (_tmp124_ == NULL) {
					{
						ValaList* _prerequisite_list = NULL;
						ValaInterface* _tmp125_;
						ValaList* _tmp126_;
						gint _prerequisite_size = 0;
						ValaList* _tmp127_;
						gint _tmp128_;
						gint _tmp129_;
						gint _prerequisite_index = 0;
						_tmp125_ = iface;
						_tmp126_ = vala_interface_get_prerequisites (_tmp125_);
						_prerequisite_list = _tmp126_;
						_tmp127_ = _prerequisite_list;
						_tmp128_ = vala_collection_get_size ((ValaCollection*) _tmp127_);
						_tmp129_ = _tmp128_;
						_prerequisite_size = _tmp129_;
						_prerequisite_index = -1;
						while (TRUE) {
							gint _tmp130_;
							gint _tmp131_;
							gint _tmp132_;
							ValaDataType* prerequisite = NULL;
							ValaList* _tmp133_;
							gint _tmp134_;
							gpointer _tmp135_;
							ValaDataType* _tmp136_;
							ValaTypeSymbol* _tmp137_;
							ValaTypeSymbol* _tmp138_;
							_tmp130_ = _prerequisite_index;
							_prerequisite_index = _tmp130_ + 1;
							_tmp131_ = _prerequisite_index;
							_tmp132_ = _prerequisite_size;
							if (!(_tmp131_ < _tmp132_)) {
								break;
							}
							_tmp133_ = _prerequisite_list;
							_tmp134_ = _prerequisite_index;
							_tmp135_ = vala_list_get (_tmp133_, _tmp134_);
							prerequisite = (ValaDataType*) _tmp135_;
							_tmp136_ = prerequisite;
							_tmp137_ = vala_data_type_get_data_type (_tmp136_);
							_tmp138_ = _tmp137_;
							if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp138_, VALA_TYPE_CLASS)) {
								ValaDataType* _tmp139_;
								ValaDataType* _tmp140_;
								ValaCodeNode* _tmp141_;
								ValaDataType* _tmp142_;
								ValaDataType* _tmp143_;
								ValaTypeSymbol* _tmp144_;
								ValaCodeNode* _tmp145_;
								ValaDataType* _tmp146_;
								ValaDataType* _tmp147_;
								_tmp139_ = instance_type;
								_tmp140_ = prerequisite;
								_tmp141_ = node_reference;
								_tmp142_ = vala_semantic_analyzer_get_instance_base_type (_tmp139_, _tmp140_, _tmp141_);
								_tmp143_ = _tmp142_;
								_tmp144_ = type_symbol;
								_tmp145_ = node_reference;
								_tmp146_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp143_, _tmp144_, _tmp145_);
								_vala_code_node_unref0 (instance_base_type);
								instance_base_type = _tmp146_;
								_vala_code_node_unref0 (_tmp143_);
								_tmp147_ = instance_base_type;
								if (_tmp147_ != NULL) {
									result = instance_base_type;
									_vala_code_node_unref0 (prerequisite);
									_vala_iterable_unref0 (_prerequisite_list);
									_vala_code_node_unref0 (iface);
									_vala_code_node_unref0 (instance_type);
									return result;
								}
							}
							_vala_code_node_unref0 (prerequisite);
						}
						_vala_iterable_unref0 (_prerequisite_list);
					}
				}
				_vala_code_node_unref0 (iface);
			}
		}
	}
	result = NULL;
	_vala_code_node_unref0 (instance_base_type);
	_vala_code_node_unref0 (instance_type);
	return result;
}


ValaDataType* vala_semantic_analyzer_get_actual_type (ValaDataType* derived_instance_type, ValaList* method_type_arguments, ValaGenericType* generic_type, ValaCodeNode* node_reference) {
	ValaDataType* result = NULL;
	ValaDataType* actual_type = NULL;
	ValaGenericType* _tmp0_;
	ValaTypeParameter* _tmp1_;
	ValaTypeParameter* _tmp2_;
	ValaSymbol* _tmp3_;
	ValaSymbol* _tmp4_;
	ValaDataType* _tmp107_;
	ValaDataType* _tmp110_;
	ValaDataType* _tmp111_;
	gboolean _tmp112_ = FALSE;
	ValaDataType* _tmp113_;
	gboolean _tmp114_;
	gboolean _tmp115_;
	ValaDataType* _tmp119_;
	g_return_val_if_fail (generic_type != NULL, NULL);
	g_return_val_if_fail (node_reference != NULL, NULL);
	actual_type = NULL;
	_tmp0_ = generic_type;
	_tmp1_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp2_);
	_tmp4_ = _tmp3_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, VALA_TYPE_TYPESYMBOL)) {
		ValaDataType* _tmp5_;
		_tmp5_ = derived_instance_type;
		if (_tmp5_ != NULL) {
			ValaDataType* instance_type = NULL;
			ValaDataType* _tmp6_;
			ValaGenericType* _tmp7_;
			ValaTypeParameter* _tmp8_;
			ValaTypeParameter* _tmp9_;
			ValaSymbol* _tmp10_;
			ValaSymbol* _tmp11_;
			ValaCodeNode* _tmp12_;
			ValaDataType* _tmp13_;
			ValaDataType* _tmp14_;
			gint param_index = 0;
			ValaDataType* _tmp29_;
			gint _tmp48_;
			gint _tmp61_;
			ValaDataType* _tmp62_;
			ValaList* _tmp63_;
			ValaList* _tmp64_;
			gint _tmp65_;
			gint _tmp66_;
			gboolean _tmp67_;
			_tmp6_ = derived_instance_type;
			_tmp7_ = generic_type;
			_tmp8_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp7_);
			_tmp9_ = _tmp8_;
			_tmp10_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp9_);
			_tmp11_ = _tmp10_;
			_tmp12_ = node_reference;
			_tmp13_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, VALA_TYPE_TYPESYMBOL, ValaTypeSymbol), _tmp12_);
			instance_type = _tmp13_;
			_tmp14_ = instance_type;
			if (_tmp14_ == NULL) {
				ValaCodeNode* reference = NULL;
				ValaDataType* _tmp15_;
				ValaSymbol* _tmp16_;
				ValaCodeNode* _tmp17_ = NULL;
				ValaCodeNode* _tmp18_;
				ValaSourceReference* _tmp20_;
				ValaSourceReference* _tmp21_;
				ValaGenericType* _tmp22_;
				gchar* _tmp23_;
				gchar* _tmp24_;
				gchar* _tmp25_;
				gchar* _tmp26_;
				ValaCodeNode* _tmp27_;
				ValaInvalidType* _tmp28_;
				_tmp15_ = derived_instance_type;
				_tmp16_ = vala_semantic_analyzer_get_symbol_for_data_type (_tmp15_);
				reference = (ValaCodeNode*) _tmp16_;
				_tmp18_ = reference;
				_tmp17_ = _tmp18_;
				if (_tmp17_ == NULL) {
					ValaCodeNode* _tmp19_;
					_tmp19_ = node_reference;
					_tmp17_ = _tmp19_;
				}
				_tmp20_ = vala_code_node_get_source_reference (_tmp17_);
				_tmp21_ = _tmp20_;
				_tmp22_ = generic_type;
				_tmp23_ = vala_code_node_to_string ((ValaCodeNode*) _tmp22_);
				_tmp24_ = _tmp23_;
				_tmp25_ = g_strdup_printf ("The type-parameter `%s' is missing", _tmp24_);
				_tmp26_ = _tmp25_;
				vala_report_error (_tmp21_, _tmp26_);
				_g_free0 (_tmp26_);
				_g_free0 (_tmp24_);
				_tmp27_ = node_reference;
				vala_code_node_set_error (_tmp27_, TRUE);
				_tmp28_ = vala_invalid_type_new ();
				result = (ValaDataType*) _tmp28_;
				_vala_code_node_unref0 (reference);
				_vala_code_node_unref0 (instance_type);
				_vala_code_node_unref0 (actual_type);
				return result;
			}
			_tmp29_ = instance_type;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, VALA_TYPE_DELEGATE_TYPE)) {
				ValaDataType* _tmp30_;
				ValaDelegate* _tmp31_;
				ValaDelegate* _tmp32_;
				ValaGenericType* _tmp33_;
				ValaTypeParameter* _tmp34_;
				ValaTypeParameter* _tmp35_;
				const gchar* _tmp36_;
				const gchar* _tmp37_;
				gint _tmp38_;
				_tmp30_ = instance_type;
				_tmp31_ = vala_delegate_type_get_delegate_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, VALA_TYPE_DELEGATE_TYPE, ValaDelegateType));
				_tmp32_ = _tmp31_;
				_tmp33_ = generic_type;
				_tmp34_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp33_);
				_tmp35_ = _tmp34_;
				_tmp36_ = vala_symbol_get_name ((ValaSymbol*) _tmp35_);
				_tmp37_ = _tmp36_;
				_tmp38_ = vala_typesymbol_get_type_parameter_index ((ValaTypeSymbol*) _tmp32_, _tmp37_);
				param_index = _tmp38_;
			} else {
				ValaDataType* _tmp39_;
				ValaTypeSymbol* _tmp40_;
				ValaTypeSymbol* _tmp41_;
				ValaGenericType* _tmp42_;
				ValaTypeParameter* _tmp43_;
				ValaTypeParameter* _tmp44_;
				const gchar* _tmp45_;
				const gchar* _tmp46_;
				gint _tmp47_;
				_tmp39_ = instance_type;
				_tmp40_ = vala_data_type_get_data_type (_tmp39_);
				_tmp41_ = _tmp40_;
				_tmp42_ = generic_type;
				_tmp43_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp42_);
				_tmp44_ = _tmp43_;
				_tmp45_ = vala_symbol_get_name ((ValaSymbol*) _tmp44_);
				_tmp46_ = _tmp45_;
				_tmp47_ = vala_typesymbol_get_type_parameter_index (_tmp41_, _tmp46_);
				param_index = _tmp47_;
			}
			_tmp48_ = param_index;
			if (_tmp48_ == -1) {
				ValaCodeNode* _tmp49_;
				ValaSourceReference* _tmp50_;
				ValaSourceReference* _tmp51_;
				ValaGenericType* _tmp52_;
				ValaTypeParameter* _tmp53_;
				ValaTypeParameter* _tmp54_;
				const gchar* _tmp55_;
				const gchar* _tmp56_;
				gchar* _tmp57_;
				gchar* _tmp58_;
				ValaCodeNode* _tmp59_;
				ValaInvalidType* _tmp60_;
				_tmp49_ = node_reference;
				_tmp50_ = vala_code_node_get_source_reference (_tmp49_);
				_tmp51_ = _tmp50_;
				_tmp52_ = generic_type;
				_tmp53_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp52_);
				_tmp54_ = _tmp53_;
				_tmp55_ = vala_symbol_get_name ((ValaSymbol*) _tmp54_);
				_tmp56_ = _tmp55_;
				_tmp57_ = g_strdup_printf ("internal error: unknown type parameter %s", _tmp56_);
				_tmp58_ = _tmp57_;
				vala_report_error (_tmp51_, _tmp58_);
				_g_free0 (_tmp58_);
				_tmp59_ = node_reference;
				vala_code_node_set_error (_tmp59_, TRUE);
				_tmp60_ = vala_invalid_type_new ();
				result = (ValaDataType*) _tmp60_;
				_vala_code_node_unref0 (instance_type);
				_vala_code_node_unref0 (actual_type);
				return result;
			}
			_tmp61_ = param_index;
			_tmp62_ = instance_type;
			_tmp63_ = vala_data_type_get_type_arguments (_tmp62_);
			_tmp64_ = _tmp63_;
			_tmp65_ = vala_collection_get_size ((ValaCollection*) _tmp64_);
			_tmp66_ = _tmp65_;
			_tmp67_ = _tmp61_ < _tmp66_;
			_vala_iterable_unref0 (_tmp64_);
			if (_tmp67_) {
				ValaDataType* _tmp68_;
				ValaList* _tmp69_;
				ValaList* _tmp70_;
				gint _tmp71_;
				gpointer _tmp72_;
				_tmp68_ = instance_type;
				_tmp69_ = vala_data_type_get_type_arguments (_tmp68_);
				_tmp70_ = _tmp69_;
				_tmp71_ = param_index;
				_tmp72_ = vala_list_get (_tmp70_, _tmp71_);
				_vala_code_node_unref0 (actual_type);
				actual_type = G_TYPE_CHECK_INSTANCE_CAST ((ValaDataType*) _tmp72_, VALA_TYPE_DATA_TYPE, ValaDataType);
				_vala_iterable_unref0 (_tmp70_);
			}
			_vala_code_node_unref0 (instance_type);
		}
	} else {
		ValaMethod* m = NULL;
		ValaGenericType* _tmp73_;
		ValaTypeParameter* _tmp74_;
		ValaTypeParameter* _tmp75_;
		ValaSymbol* _tmp76_;
		ValaSymbol* _tmp77_;
		ValaMethod* _tmp78_;
		gint param_index = 0;
		ValaMethod* _tmp79_;
		ValaGenericType* _tmp80_;
		ValaTypeParameter* _tmp81_;
		ValaTypeParameter* _tmp82_;
		const gchar* _tmp83_;
		const gchar* _tmp84_;
		gint _tmp85_;
		gint _tmp86_;
		ValaList* _tmp99_;
		_tmp73_ = generic_type;
		_tmp74_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp73_);
		_tmp75_ = _tmp74_;
		_tmp76_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp75_);
		_tmp77_ = _tmp76_;
		_tmp78_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, VALA_TYPE_METHOD, ValaMethod));
		m = _tmp78_;
		_tmp79_ = m;
		_tmp80_ = generic_type;
		_tmp81_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp80_);
		_tmp82_ = _tmp81_;
		_tmp83_ = vala_symbol_get_name ((ValaSymbol*) _tmp82_);
		_tmp84_ = _tmp83_;
		_tmp85_ = vala_method_get_type_parameter_index (_tmp79_, _tmp84_);
		param_index = _tmp85_;
		_tmp86_ = param_index;
		if (_tmp86_ == -1) {
			ValaCodeNode* _tmp87_;
			ValaSourceReference* _tmp88_;
			ValaSourceReference* _tmp89_;
			ValaGenericType* _tmp90_;
			ValaTypeParameter* _tmp91_;
			ValaTypeParameter* _tmp92_;
			const gchar* _tmp93_;
			const gchar* _tmp94_;
			gchar* _tmp95_;
			gchar* _tmp96_;
			ValaCodeNode* _tmp97_;
			ValaInvalidType* _tmp98_;
			_tmp87_ = node_reference;
			_tmp88_ = vala_code_node_get_source_reference (_tmp87_);
			_tmp89_ = _tmp88_;
			_tmp90_ = generic_type;
			_tmp91_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp90_);
			_tmp92_ = _tmp91_;
			_tmp93_ = vala_symbol_get_name ((ValaSymbol*) _tmp92_);
			_tmp94_ = _tmp93_;
			_tmp95_ = g_strdup_printf ("internal error: unknown type parameter %s", _tmp94_);
			_tmp96_ = _tmp95_;
			vala_report_error (_tmp89_, _tmp96_);
			_g_free0 (_tmp96_);
			_tmp97_ = node_reference;
			vala_code_node_set_error (_tmp97_, TRUE);
			_tmp98_ = vala_invalid_type_new ();
			result = (ValaDataType*) _tmp98_;
			_vala_code_node_unref0 (m);
			_vala_code_node_unref0 (actual_type);
			return result;
		}
		_tmp99_ = method_type_arguments;
		if (_tmp99_ != NULL) {
			gint _tmp100_;
			ValaList* _tmp101_;
			gint _tmp102_;
			gint _tmp103_;
			_tmp100_ = param_index;
			_tmp101_ = method_type_arguments;
			_tmp102_ = vala_collection_get_size ((ValaCollection*) _tmp101_);
			_tmp103_ = _tmp102_;
			if (_tmp100_ < _tmp103_) {
				ValaList* _tmp104_;
				gint _tmp105_;
				gpointer _tmp106_;
				_tmp104_ = method_type_arguments;
				_tmp105_ = param_index;
				_tmp106_ = vala_list_get (_tmp104_, _tmp105_);
				_vala_code_node_unref0 (actual_type);
				actual_type = G_TYPE_CHECK_INSTANCE_CAST ((ValaDataType*) _tmp106_, VALA_TYPE_DATA_TYPE, ValaDataType);
			}
		}
		_vala_code_node_unref0 (m);
	}
	_tmp107_ = actual_type;
	if (_tmp107_ == NULL) {
		ValaGenericType* _tmp108_;
		ValaDataType* _tmp109_;
		_tmp108_ = generic_type;
		_tmp109_ = _vala_code_node_ref0 ((ValaDataType*) _tmp108_);
		result = _tmp109_;
		_vala_code_node_unref0 (actual_type);
		return result;
	}
	_tmp110_ = actual_type;
	_tmp111_ = vala_data_type_copy (_tmp110_);
	_vala_code_node_unref0 (actual_type);
	actual_type = _tmp111_;
	_tmp113_ = actual_type;
	_tmp114_ = vala_data_type_get_value_owned (_tmp113_);
	_tmp115_ = _tmp114_;
	if (_tmp115_) {
		ValaGenericType* _tmp116_;
		gboolean _tmp117_;
		gboolean _tmp118_;
		_tmp116_ = generic_type;
		_tmp117_ = vala_data_type_get_value_owned ((ValaDataType*) _tmp116_);
		_tmp118_ = _tmp117_;
		_tmp112_ = _tmp118_;
	} else {
		_tmp112_ = FALSE;
	}
	_tmp119_ = actual_type;
	vala_data_type_set_value_owned (_tmp119_, _tmp112_);
	result = actual_type;
	return result;
}


gboolean vala_semantic_analyzer_is_in_instance_method (ValaSemanticAnalyzer* self) {
	gboolean result = FALSE;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_current_symbol;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	sym = _tmp1_;
	while (TRUE) {
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp28_;
		ValaSymbol* _tmp29_;
		ValaSymbol* _tmp30_;
		ValaSymbol* _tmp31_;
		_tmp2_ = sym;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_CREATION_METHOD)) {
			result = TRUE;
			_vala_code_node_unref0 (sym);
			return result;
		} else {
			ValaSymbol* _tmp4_;
			_tmp4_ = sym;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, VALA_TYPE_METHOD)) {
				ValaMethod* m = NULL;
				ValaSymbol* _tmp5_;
				ValaMethod* _tmp6_;
				ValaMethod* _tmp7_;
				ValaMemberBinding _tmp8_;
				ValaMemberBinding _tmp9_;
				_tmp5_ = sym;
				_tmp6_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, VALA_TYPE_METHOD, ValaMethod));
				m = _tmp6_;
				_tmp7_ = m;
				_tmp8_ = vala_method_get_binding (_tmp7_);
				_tmp9_ = _tmp8_;
				result = _tmp9_ == VALA_MEMBER_BINDING_INSTANCE;
				_vala_code_node_unref0 (m);
				_vala_code_node_unref0 (sym);
				return result;
			} else {
				ValaSymbol* _tmp10_;
				_tmp10_ = sym;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, VALA_TYPE_CONSTRUCTOR)) {
					ValaConstructor* c = NULL;
					ValaSymbol* _tmp11_;
					ValaConstructor* _tmp12_;
					ValaConstructor* _tmp13_;
					ValaMemberBinding _tmp14_;
					ValaMemberBinding _tmp15_;
					_tmp11_ = sym;
					_tmp12_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, VALA_TYPE_CONSTRUCTOR, ValaConstructor));
					c = _tmp12_;
					_tmp13_ = c;
					_tmp14_ = vala_constructor_get_binding (_tmp13_);
					_tmp15_ = _tmp14_;
					result = _tmp15_ == VALA_MEMBER_BINDING_INSTANCE;
					_vala_code_node_unref0 (c);
					_vala_code_node_unref0 (sym);
					return result;
				} else {
					ValaSymbol* _tmp16_;
					_tmp16_ = sym;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, VALA_TYPE_DESTRUCTOR)) {
						ValaDestructor* d = NULL;
						ValaSymbol* _tmp17_;
						ValaDestructor* _tmp18_;
						ValaDestructor* _tmp19_;
						ValaMemberBinding _tmp20_;
						ValaMemberBinding _tmp21_;
						_tmp17_ = sym;
						_tmp18_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, VALA_TYPE_DESTRUCTOR, ValaDestructor));
						d = _tmp18_;
						_tmp19_ = d;
						_tmp20_ = vala_destructor_get_binding (_tmp19_);
						_tmp21_ = _tmp20_;
						result = _tmp21_ == VALA_MEMBER_BINDING_INSTANCE;
						_vala_code_node_unref0 (d);
						_vala_code_node_unref0 (sym);
						return result;
					} else {
						ValaSymbol* _tmp22_;
						_tmp22_ = sym;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, VALA_TYPE_PROPERTY)) {
							ValaProperty* p = NULL;
							ValaSymbol* _tmp23_;
							ValaProperty* _tmp24_;
							ValaProperty* _tmp25_;
							ValaMemberBinding _tmp26_;
							ValaMemberBinding _tmp27_;
							_tmp23_ = sym;
							_tmp24_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, VALA_TYPE_PROPERTY, ValaProperty));
							p = _tmp24_;
							_tmp25_ = p;
							_tmp26_ = vala_property_get_binding (_tmp25_);
							_tmp27_ = _tmp26_;
							result = _tmp27_ == VALA_MEMBER_BINDING_INSTANCE;
							_vala_code_node_unref0 (p);
							_vala_code_node_unref0 (sym);
							return result;
						}
					}
				}
			}
		}
		_tmp28_ = sym;
		_tmp29_ = vala_symbol_get_parent_symbol (_tmp28_);
		_tmp30_ = _tmp29_;
		_tmp31_ = _vala_code_node_ref0 (_tmp30_);
		_vala_code_node_unref0 (sym);
		sym = _tmp31_;
	}
	result = FALSE;
	_vala_code_node_unref0 (sym);
	return result;
}


ValaExpression* vala_semantic_analyzer_create_temp_access (ValaLocalVariable* local, ValaDataType* target_type) {
	ValaExpression* result = NULL;
	ValaExpression* temp_access = NULL;
	ValaLocalVariable* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	ValaLocalVariable* _tmp3_;
	ValaSourceReference* _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaMemberAccess* _tmp6_;
	gboolean _tmp7_ = FALSE;
	ValaDataType* _tmp8_;
	gboolean target_owned = FALSE;
	gboolean _tmp12_ = FALSE;
	gboolean _tmp13_;
	g_return_val_if_fail (local != NULL, NULL);
	_tmp0_ = local;
	_tmp1_ = vala_symbol_get_name ((ValaSymbol*) _tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = local;
	_tmp4_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = vala_member_access_new_simple (_tmp2_, _tmp5_);
	temp_access = (ValaExpression*) _tmp6_;
	_tmp8_ = target_type;
	if (_tmp8_ != NULL) {
		ValaDataType* _tmp9_;
		gboolean _tmp10_;
		gboolean _tmp11_;
		_tmp9_ = target_type;
		_tmp10_ = vala_data_type_get_value_owned (_tmp9_);
		_tmp11_ = _tmp10_;
		_tmp7_ = _tmp11_;
	} else {
		_tmp7_ = FALSE;
	}
	target_owned = _tmp7_;
	_tmp13_ = target_owned;
	if (_tmp13_) {
		ValaLocalVariable* _tmp14_;
		ValaDataType* _tmp15_;
		ValaDataType* _tmp16_;
		gboolean _tmp17_;
		_tmp14_ = local;
		_tmp15_ = vala_variable_get_variable_type ((ValaVariable*) _tmp14_);
		_tmp16_ = _tmp15_;
		_tmp17_ = vala_data_type_is_disposable (_tmp16_);
		_tmp12_ = _tmp17_;
	} else {
		_tmp12_ = FALSE;
	}
	if (_tmp12_) {
		ValaExpression* _tmp18_;
		ValaLocalVariable* _tmp19_;
		ValaSourceReference* _tmp20_;
		ValaSourceReference* _tmp21_;
		ValaReferenceTransferExpression* _tmp22_;
		ValaDataType* _tmp23_ = NULL;
		ValaDataType* _tmp24_;
		ValaExpression* _tmp31_;
		ValaExpression* _tmp32_;
		ValaDataType* _tmp33_;
		ValaDataType* _tmp34_;
		_tmp18_ = temp_access;
		_tmp19_ = local;
		_tmp20_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp19_);
		_tmp21_ = _tmp20_;
		_tmp22_ = vala_reference_transfer_expression_new (_tmp18_, _tmp21_);
		_vala_code_node_unref0 (temp_access);
		temp_access = (ValaExpression*) _tmp22_;
		_tmp24_ = target_type;
		if (_tmp24_ != NULL) {
			ValaDataType* _tmp25_;
			ValaDataType* _tmp26_;
			_tmp25_ = target_type;
			_tmp26_ = vala_data_type_copy (_tmp25_);
			_vala_code_node_unref0 (_tmp23_);
			_tmp23_ = _tmp26_;
		} else {
			ValaLocalVariable* _tmp27_;
			ValaDataType* _tmp28_;
			ValaDataType* _tmp29_;
			ValaDataType* _tmp30_;
			_tmp27_ = local;
			_tmp28_ = vala_variable_get_variable_type ((ValaVariable*) _tmp27_);
			_tmp29_ = _tmp28_;
			_tmp30_ = vala_data_type_copy (_tmp29_);
			_vala_code_node_unref0 (_tmp23_);
			_tmp23_ = _tmp30_;
		}
		_tmp31_ = temp_access;
		vala_expression_set_target_type (_tmp31_, _tmp23_);
		_tmp32_ = temp_access;
		_tmp33_ = vala_expression_get_target_type (_tmp32_);
		_tmp34_ = _tmp33_;
		vala_data_type_set_value_owned (_tmp34_, TRUE);
		_vala_code_node_unref0 (_tmp23_);
	} else {
		ValaDataType* _tmp35_ = NULL;
		ValaDataType* _tmp36_;
		ValaExpression* _tmp39_;
		_tmp36_ = target_type;
		if (_tmp36_ != NULL) {
			ValaDataType* _tmp37_;
			ValaDataType* _tmp38_;
			_tmp37_ = target_type;
			_tmp38_ = vala_data_type_copy (_tmp37_);
			_vala_code_node_unref0 (_tmp35_);
			_tmp35_ = _tmp38_;
		} else {
			_vala_code_node_unref0 (_tmp35_);
			_tmp35_ = NULL;
		}
		_tmp39_ = temp_access;
		vala_expression_set_target_type (_tmp39_, _tmp35_);
		_vala_code_node_unref0 (_tmp35_);
	}
	result = temp_access;
	return result;
}


void vala_semantic_analyzer_visit_member_initializer (ValaSemanticAnalyzer* self, ValaMemberInitializer* init, ValaDataType* type) {
	ValaMemberInitializer* _tmp0_;
	ValaDataType* _tmp1_;
	ValaTypeSymbol* _tmp2_;
	ValaTypeSymbol* _tmp3_;
	ValaMemberInitializer* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	ValaSymbol* _tmp7_;
	ValaSymbol* _tmp8_;
	gboolean _tmp9_ = FALSE;
	ValaMemberInitializer* _tmp10_;
	ValaSymbol* _tmp11_;
	ValaSymbol* _tmp12_;
	ValaMemberInitializer* _tmp30_;
	ValaSymbol* _tmp31_;
	ValaSymbol* _tmp32_;
	ValaSymbolAccessibility _tmp33_;
	ValaSymbolAccessibility _tmp34_;
	ValaDataType* member_type = NULL;
	ValaMemberInitializer* _tmp46_;
	ValaSymbol* _tmp47_;
	ValaSymbol* _tmp48_;
	ValaMemberInitializer* _tmp86_;
	ValaExpression* _tmp87_;
	ValaExpression* _tmp88_;
	ValaDataType* _tmp89_;
	ValaMemberInitializer* _tmp90_;
	ValaExpression* _tmp91_;
	ValaExpression* _tmp92_;
	ValaMemberInitializer* _tmp93_;
	ValaExpression* _tmp94_;
	ValaExpression* _tmp95_;
	ValaDataType* _tmp96_;
	ValaDataType* _tmp97_;
	ValaDataType* _tmp98_;
	ValaMemberInitializer* _tmp99_;
	ValaDataType* _tmp100_;
	ValaDataType* _tmp101_;
	ValaMemberInitializer* _tmp102_;
	ValaCodeContext* _tmp103_;
	gboolean _tmp104_ = FALSE;
	ValaMemberInitializer* _tmp105_;
	ValaExpression* _tmp106_;
	ValaExpression* _tmp107_;
	ValaDataType* _tmp108_;
	ValaDataType* _tmp109_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (init != NULL);
	g_return_if_fail (type != NULL);
	_tmp0_ = init;
	_tmp1_ = type;
	_tmp2_ = vala_data_type_get_data_type (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = init;
	_tmp5_ = vala_member_initializer_get_name (_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp3_, _tmp6_);
	_tmp8_ = _tmp7_;
	vala_member_initializer_set_symbol_reference (_tmp0_, _tmp8_);
	_vala_code_node_unref0 (_tmp8_);
	_tmp10_ = init;
	_tmp11_ = vala_member_initializer_get_symbol_reference (_tmp10_);
	_tmp12_ = _tmp11_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, VALA_TYPE_FIELD)) {
		_tmp9_ = TRUE;
	} else {
		ValaMemberInitializer* _tmp13_;
		ValaSymbol* _tmp14_;
		ValaSymbol* _tmp15_;
		_tmp13_ = init;
		_tmp14_ = vala_member_initializer_get_symbol_reference (_tmp13_);
		_tmp15_ = _tmp14_;
		_tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, VALA_TYPE_PROPERTY);
	}
	if (!_tmp9_) {
		ValaMemberInitializer* _tmp16_;
		ValaMemberInitializer* _tmp17_;
		ValaSourceReference* _tmp18_;
		ValaSourceReference* _tmp19_;
		ValaMemberInitializer* _tmp20_;
		const gchar* _tmp21_;
		const gchar* _tmp22_;
		ValaDataType* _tmp23_;
		ValaTypeSymbol* _tmp24_;
		ValaTypeSymbol* _tmp25_;
		gchar* _tmp26_;
		gchar* _tmp27_;
		gchar* _tmp28_;
		gchar* _tmp29_;
		_tmp16_ = init;
		vala_code_node_set_error ((ValaCodeNode*) _tmp16_, TRUE);
		_tmp17_ = init;
		_tmp18_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp17_);
		_tmp19_ = _tmp18_;
		_tmp20_ = init;
		_tmp21_ = vala_member_initializer_get_name (_tmp20_);
		_tmp22_ = _tmp21_;
		_tmp23_ = type;
		_tmp24_ = vala_data_type_get_data_type (_tmp23_);
		_tmp25_ = _tmp24_;
		_tmp26_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp25_);
		_tmp27_ = _tmp26_;
		_tmp28_ = g_strdup_printf ("Invalid member `%s' in `%s'", _tmp22_, _tmp27_);
		_tmp29_ = _tmp28_;
		vala_report_error (_tmp19_, _tmp29_);
		_g_free0 (_tmp29_);
		_g_free0 (_tmp27_);
		return;
	}
	_tmp30_ = init;
	_tmp31_ = vala_member_initializer_get_symbol_reference (_tmp30_);
	_tmp32_ = _tmp31_;
	_tmp33_ = vala_symbol_get_access (_tmp32_);
	_tmp34_ = _tmp33_;
	if (_tmp34_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC) {
		ValaMemberInitializer* _tmp35_;
		ValaMemberInitializer* _tmp36_;
		ValaSourceReference* _tmp37_;
		ValaSourceReference* _tmp38_;
		ValaMemberInitializer* _tmp39_;
		ValaSymbol* _tmp40_;
		ValaSymbol* _tmp41_;
		gchar* _tmp42_;
		gchar* _tmp43_;
		gchar* _tmp44_;
		gchar* _tmp45_;
		_tmp35_ = init;
		vala_code_node_set_error ((ValaCodeNode*) _tmp35_, TRUE);
		_tmp36_ = init;
		_tmp37_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp36_);
		_tmp38_ = _tmp37_;
		_tmp39_ = init;
		_tmp40_ = vala_member_initializer_get_symbol_reference (_tmp39_);
		_tmp41_ = _tmp40_;
		_tmp42_ = vala_symbol_get_full_name (_tmp41_);
		_tmp43_ = _tmp42_;
		_tmp44_ = g_strdup_printf ("Access to private member `%s' denied", _tmp43_);
		_tmp45_ = _tmp44_;
		vala_report_error (_tmp38_, _tmp45_);
		_g_free0 (_tmp45_);
		_g_free0 (_tmp43_);
		return;
	}
	member_type = NULL;
	_tmp46_ = init;
	_tmp47_ = vala_member_initializer_get_symbol_reference (_tmp46_);
	_tmp48_ = _tmp47_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp48_, VALA_TYPE_FIELD)) {
		ValaField* f = NULL;
		ValaMemberInitializer* _tmp49_;
		ValaSymbol* _tmp50_;
		ValaSymbol* _tmp51_;
		ValaField* _tmp52_;
		ValaField* _tmp53_;
		ValaDataType* _tmp54_;
		ValaDataType* _tmp55_;
		ValaDataType* _tmp56_;
		_tmp49_ = init;
		_tmp50_ = vala_member_initializer_get_symbol_reference (_tmp49_);
		_tmp51_ = _tmp50_;
		_tmp52_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, VALA_TYPE_FIELD, ValaField));
		f = _tmp52_;
		_tmp53_ = f;
		_tmp54_ = vala_variable_get_variable_type ((ValaVariable*) _tmp53_);
		_tmp55_ = _tmp54_;
		_tmp56_ = _vala_code_node_ref0 (_tmp55_);
		_vala_code_node_unref0 (member_type);
		member_type = _tmp56_;
		_vala_code_node_unref0 (f);
	} else {
		ValaMemberInitializer* _tmp57_;
		ValaSymbol* _tmp58_;
		ValaSymbol* _tmp59_;
		_tmp57_ = init;
		_tmp58_ = vala_member_initializer_get_symbol_reference (_tmp57_);
		_tmp59_ = _tmp58_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp59_, VALA_TYPE_PROPERTY)) {
			ValaProperty* prop = NULL;
			ValaMemberInitializer* _tmp60_;
			ValaSymbol* _tmp61_;
			ValaSymbol* _tmp62_;
			ValaProperty* _tmp63_;
			ValaProperty* _tmp64_;
			ValaDataType* _tmp65_;
			ValaDataType* _tmp66_;
			ValaDataType* _tmp67_;
			gboolean _tmp68_ = FALSE;
			ValaProperty* _tmp69_;
			ValaPropertyAccessor* _tmp70_;
			ValaPropertyAccessor* _tmp71_;
			_tmp60_ = init;
			_tmp61_ = vala_member_initializer_get_symbol_reference (_tmp60_);
			_tmp62_ = _tmp61_;
			_tmp63_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, VALA_TYPE_PROPERTY, ValaProperty));
			prop = _tmp63_;
			_tmp64_ = prop;
			_tmp65_ = vala_property_get_property_type (_tmp64_);
			_tmp66_ = _tmp65_;
			_tmp67_ = _vala_code_node_ref0 (_tmp66_);
			_vala_code_node_unref0 (member_type);
			member_type = _tmp67_;
			_tmp69_ = prop;
			_tmp70_ = vala_property_get_set_accessor (_tmp69_);
			_tmp71_ = _tmp70_;
			if (_tmp71_ == NULL) {
				_tmp68_ = TRUE;
			} else {
				ValaProperty* _tmp72_;
				ValaPropertyAccessor* _tmp73_;
				ValaPropertyAccessor* _tmp74_;
				gboolean _tmp75_;
				gboolean _tmp76_;
				_tmp72_ = prop;
				_tmp73_ = vala_property_get_set_accessor (_tmp72_);
				_tmp74_ = _tmp73_;
				_tmp75_ = vala_property_accessor_get_writable (_tmp74_);
				_tmp76_ = _tmp75_;
				_tmp68_ = !_tmp76_;
			}
			if (_tmp68_) {
				ValaMemberInitializer* _tmp77_;
				ValaMemberInitializer* _tmp78_;
				ValaSourceReference* _tmp79_;
				ValaSourceReference* _tmp80_;
				ValaProperty* _tmp81_;
				gchar* _tmp82_;
				gchar* _tmp83_;
				gchar* _tmp84_;
				gchar* _tmp85_;
				_tmp77_ = init;
				vala_code_node_set_error ((ValaCodeNode*) _tmp77_, TRUE);
				_tmp78_ = init;
				_tmp79_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp78_);
				_tmp80_ = _tmp79_;
				_tmp81_ = prop;
				_tmp82_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp81_);
				_tmp83_ = _tmp82_;
				_tmp84_ = g_strdup_printf ("Property `%s' is read-only", _tmp83_);
				_tmp85_ = _tmp84_;
				vala_report_error (_tmp80_, _tmp85_);
				_g_free0 (_tmp85_);
				_g_free0 (_tmp83_);
				_vala_code_node_unref0 (prop);
				_vala_code_node_unref0 (member_type);
				return;
			}
			_vala_code_node_unref0 (prop);
		}
	}
	_tmp86_ = init;
	_tmp87_ = vala_member_initializer_get_initializer (_tmp86_);
	_tmp88_ = _tmp87_;
	_tmp89_ = member_type;
	vala_expression_set_formal_target_type (_tmp88_, _tmp89_);
	_tmp90_ = init;
	_tmp91_ = vala_member_initializer_get_initializer (_tmp90_);
	_tmp92_ = _tmp91_;
	_tmp93_ = init;
	_tmp94_ = vala_member_initializer_get_initializer (_tmp93_);
	_tmp95_ = _tmp94_;
	_tmp96_ = vala_expression_get_formal_target_type (_tmp95_);
	_tmp97_ = _tmp96_;
	_tmp98_ = type;
	_tmp99_ = init;
	_tmp100_ = vala_data_type_get_actual_type (_tmp97_, _tmp98_, NULL, (ValaCodeNode*) _tmp99_);
	_tmp101_ = _tmp100_;
	vala_expression_set_target_type (_tmp92_, _tmp101_);
	_vala_code_node_unref0 (_tmp101_);
	_tmp102_ = init;
	_tmp103_ = self->priv->_context;
	vala_code_node_check ((ValaCodeNode*) _tmp102_, _tmp103_);
	_tmp105_ = init;
	_tmp106_ = vala_member_initializer_get_initializer (_tmp105_);
	_tmp107_ = _tmp106_;
	_tmp108_ = vala_expression_get_value_type (_tmp107_);
	_tmp109_ = _tmp108_;
	if (_tmp109_ == NULL) {
		_tmp104_ = TRUE;
	} else {
		ValaMemberInitializer* _tmp110_;
		ValaExpression* _tmp111_;
		ValaExpression* _tmp112_;
		ValaDataType* _tmp113_;
		ValaDataType* _tmp114_;
		ValaMemberInitializer* _tmp115_;
		ValaExpression* _tmp116_;
		ValaExpression* _tmp117_;
		ValaDataType* _tmp118_;
		ValaDataType* _tmp119_;
		gboolean _tmp120_;
		_tmp110_ = init;
		_tmp111_ = vala_member_initializer_get_initializer (_tmp110_);
		_tmp112_ = _tmp111_;
		_tmp113_ = vala_expression_get_value_type (_tmp112_);
		_tmp114_ = _tmp113_;
		_tmp115_ = init;
		_tmp116_ = vala_member_initializer_get_initializer (_tmp115_);
		_tmp117_ = _tmp116_;
		_tmp118_ = vala_expression_get_target_type (_tmp117_);
		_tmp119_ = _tmp118_;
		_tmp120_ = vala_data_type_compatible (_tmp114_, _tmp119_);
		_tmp104_ = !_tmp120_;
	}
	if (_tmp104_) {
		ValaMemberInitializer* _tmp121_;
		ValaMemberInitializer* _tmp122_;
		ValaSourceReference* _tmp123_;
		ValaSourceReference* _tmp124_;
		ValaMemberInitializer* _tmp125_;
		const gchar* _tmp126_;
		const gchar* _tmp127_;
		gchar* _tmp128_;
		gchar* _tmp129_;
		_tmp121_ = init;
		vala_code_node_set_error ((ValaCodeNode*) _tmp121_, TRUE);
		_tmp122_ = init;
		_tmp123_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp122_);
		_tmp124_ = _tmp123_;
		_tmp125_ = init;
		_tmp126_ = vala_member_initializer_get_name (_tmp125_);
		_tmp127_ = _tmp126_;
		_tmp128_ = g_strdup_printf ("Invalid type for member `%s'", _tmp127_);
		_tmp129_ = _tmp128_;
		vala_report_error (_tmp124_, _tmp129_);
		_g_free0 (_tmp129_);
		_vala_code_node_unref0 (member_type);
		return;
	}
	_vala_code_node_unref0 (member_type);
}


static ValaStruct* vala_semantic_analyzer_get_arithmetic_struct (ValaSemanticAnalyzer* self, ValaDataType* type) {
	ValaStruct* result = NULL;
	ValaStruct* _result_ = NULL;
	ValaDataType* _tmp0_;
	ValaTypeSymbol* _tmp1_;
	ValaTypeSymbol* _tmp2_;
	ValaStruct* _tmp3_;
	gboolean _tmp4_ = FALSE;
	ValaStruct* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (type != NULL, NULL);
	_tmp0_ = type;
	_tmp1_ = vala_data_type_get_data_type (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, VALA_TYPE_STRUCT) ? ((ValaStruct*) _tmp2_) : NULL);
	_result_ = _tmp3_;
	_tmp5_ = _result_;
	if (_tmp5_ == NULL) {
		ValaDataType* _tmp6_;
		_tmp6_ = type;
		_tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, VALA_TYPE_ENUM_VALUE_TYPE);
	} else {
		_tmp4_ = FALSE;
	}
	if (_tmp4_) {
		ValaDataType* _tmp7_;
		ValaTypeSymbol* _tmp8_;
		ValaTypeSymbol* _tmp9_;
		ValaStruct* _tmp10_;
		_tmp7_ = self->int_type;
		_tmp8_ = vala_data_type_get_data_type (_tmp7_);
		_tmp9_ = _tmp8_;
		_tmp10_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, VALA_TYPE_STRUCT, ValaStruct));
		result = _tmp10_;
		_vala_code_node_unref0 (_result_);
		return result;
	}
	result = _result_;
	return result;
}


ValaDataType* vala_semantic_analyzer_get_arithmetic_result_type (ValaSemanticAnalyzer* self, ValaDataType* left_type, ValaDataType* right_type) {
	ValaDataType* result = NULL;
	ValaStruct* left = NULL;
	ValaDataType* _tmp0_;
	ValaStruct* _tmp1_;
	ValaStruct* right = NULL;
	ValaDataType* _tmp2_;
	ValaStruct* _tmp3_;
	gboolean _tmp4_ = FALSE;
	ValaStruct* _tmp5_;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	ValaStruct* _tmp9_;
	gboolean _tmp10_;
	ValaStruct* _tmp18_;
	gboolean _tmp19_;
	ValaStruct* _tmp20_;
	gboolean _tmp21_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (left_type != NULL, NULL);
	g_return_val_if_fail (right_type != NULL, NULL);
	_tmp0_ = left_type;
	_tmp1_ = vala_semantic_analyzer_get_arithmetic_struct (self, _tmp0_);
	left = _tmp1_;
	_tmp2_ = right_type;
	_tmp3_ = vala_semantic_analyzer_get_arithmetic_struct (self, _tmp2_);
	right = _tmp3_;
	_tmp5_ = left;
	if (_tmp5_ == NULL) {
		_tmp4_ = TRUE;
	} else {
		ValaStruct* _tmp6_;
		_tmp6_ = right;
		_tmp4_ = _tmp6_ == NULL;
	}
	if (_tmp4_) {
		result = NULL;
		_vala_code_node_unref0 (right);
		_vala_code_node_unref0 (left);
		return result;
	}
	_tmp9_ = left;
	_tmp10_ = vala_struct_is_floating_type (_tmp9_);
	if (!_tmp10_) {
		ValaStruct* _tmp11_;
		gboolean _tmp12_;
		_tmp11_ = left;
		_tmp12_ = vala_struct_is_integer_type (_tmp11_);
		_tmp8_ = !_tmp12_;
	} else {
		_tmp8_ = FALSE;
	}
	if (_tmp8_) {
		_tmp7_ = TRUE;
	} else {
		gboolean _tmp13_ = FALSE;
		ValaStruct* _tmp14_;
		gboolean _tmp15_;
		_tmp14_ = right;
		_tmp15_ = vala_struct_is_floating_type (_tmp14_);
		if (!_tmp15_) {
			ValaStruct* _tmp16_;
			gboolean _tmp17_;
			_tmp16_ = right;
			_tmp17_ = vala_struct_is_integer_type (_tmp16_);
			_tmp13_ = !_tmp17_;
		} else {
			_tmp13_ = FALSE;
		}
		_tmp7_ = _tmp13_;
	}
	if (_tmp7_) {
		result = NULL;
		_vala_code_node_unref0 (right);
		_vala_code_node_unref0 (left);
		return result;
	}
	_tmp18_ = left;
	_tmp19_ = vala_struct_is_floating_type (_tmp18_);
	_tmp20_ = right;
	_tmp21_ = vala_struct_is_floating_type (_tmp20_);
	if (_tmp19_ == _tmp21_) {
		ValaStruct* _tmp22_;
		gint _tmp23_;
		ValaStruct* _tmp24_;
		gint _tmp25_;
		_tmp22_ = left;
		_tmp23_ = vala_struct_get_rank (_tmp22_);
		_tmp24_ = right;
		_tmp25_ = vala_struct_get_rank (_tmp24_);
		if (_tmp23_ >= _tmp25_) {
			ValaDataType* _tmp26_;
			ValaDataType* _tmp27_;
			_tmp26_ = left_type;
			_tmp27_ = _vala_code_node_ref0 (_tmp26_);
			result = _tmp27_;
			_vala_code_node_unref0 (right);
			_vala_code_node_unref0 (left);
			return result;
		} else {
			ValaDataType* _tmp28_;
			ValaDataType* _tmp29_;
			_tmp28_ = right_type;
			_tmp29_ = _vala_code_node_ref0 (_tmp28_);
			result = _tmp29_;
			_vala_code_node_unref0 (right);
			_vala_code_node_unref0 (left);
			return result;
		}
	} else {
		ValaStruct* _tmp30_;
		gboolean _tmp31_;
		_tmp30_ = left;
		_tmp31_ = vala_struct_is_floating_type (_tmp30_);
		if (_tmp31_) {
			ValaDataType* _tmp32_;
			ValaDataType* _tmp33_;
			_tmp32_ = left_type;
			_tmp33_ = _vala_code_node_ref0 (_tmp32_);
			result = _tmp33_;
			_vala_code_node_unref0 (right);
			_vala_code_node_unref0 (left);
			return result;
		} else {
			ValaDataType* _tmp34_;
			ValaDataType* _tmp35_;
			_tmp34_ = right_type;
			_tmp35_ = _vala_code_node_ref0 (_tmp34_);
			result = _tmp35_;
			_vala_code_node_unref0 (right);
			_vala_code_node_unref0 (left);
			return result;
		}
	}
	_vala_code_node_unref0 (right);
	_vala_code_node_unref0 (left);
}


ValaMethod* vala_semantic_analyzer_find_current_method (ValaSemanticAnalyzer* self) {
	ValaMethod* result = NULL;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	sym = _tmp1_;
	while (TRUE) {
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp6_;
		ValaSymbol* _tmp7_;
		ValaSymbol* _tmp8_;
		ValaSymbol* _tmp9_;
		_tmp2_ = sym;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_METHOD)) {
			ValaSymbol* _tmp4_;
			ValaMethod* _tmp5_;
			_tmp4_ = sym;
			_tmp5_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, VALA_TYPE_METHOD, ValaMethod));
			result = _tmp5_;
			_vala_code_node_unref0 (sym);
			return result;
		}
		_tmp6_ = sym;
		_tmp7_ = vala_symbol_get_parent_symbol (_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = _vala_code_node_ref0 (_tmp8_);
		_vala_code_node_unref0 (sym);
		sym = _tmp9_;
	}
	result = NULL;
	_vala_code_node_unref0 (sym);
	return result;
}


ValaMethod* vala_semantic_analyzer_find_parent_method (ValaSemanticAnalyzer* self, ValaSymbol* sym) {
	ValaMethod* result = NULL;
	ValaSymbol* _tmp4_;
	ValaMethod* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (sym != NULL, NULL);
	while (TRUE) {
		ValaSymbol* _tmp0_;
		ValaSymbol* _tmp1_;
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		_tmp0_ = sym;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_BLOCK)) {
			break;
		}
		_tmp1_ = sym;
		_tmp2_ = vala_symbol_get_parent_symbol (_tmp1_);
		_tmp3_ = _tmp2_;
		sym = _tmp3_;
	}
	_tmp4_ = sym;
	_tmp5_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, VALA_TYPE_METHOD) ? ((ValaMethod*) _tmp4_) : NULL);
	result = _tmp5_;
	return result;
}


ValaSymbol* vala_semantic_analyzer_find_parent_method_or_property_accessor (ValaSemanticAnalyzer* self, ValaSymbol* sym) {
	ValaSymbol* result = NULL;
	ValaSymbol* _tmp4_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (sym != NULL, NULL);
	while (TRUE) {
		ValaSymbol* _tmp0_;
		ValaSymbol* _tmp1_;
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		_tmp0_ = sym;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_BLOCK)) {
			break;
		}
		_tmp1_ = sym;
		_tmp2_ = vala_symbol_get_parent_symbol (_tmp1_);
		_tmp3_ = _tmp2_;
		sym = _tmp3_;
	}
	_tmp4_ = sym;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, VALA_TYPE_METHOD)) {
		ValaSymbol* _tmp5_;
		ValaSymbol* _tmp6_;
		_tmp5_ = sym;
		_tmp6_ = _vala_code_node_ref0 (_tmp5_);
		result = _tmp6_;
		return result;
	} else {
		ValaSymbol* _tmp7_;
		_tmp7_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, VALA_TYPE_PROPERTY_ACCESSOR)) {
			ValaSymbol* _tmp8_;
			ValaSymbol* _tmp9_;
			_tmp8_ = sym;
			_tmp9_ = _vala_code_node_ref0 (_tmp8_);
			result = _tmp9_;
			return result;
		} else {
			result = NULL;
			return result;
		}
	}
}


gboolean vala_semantic_analyzer_is_in_constructor (ValaSemanticAnalyzer* self) {
	gboolean result = FALSE;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_current_symbol;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	sym = _tmp1_;
	while (TRUE) {
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		ValaSymbol* _tmp5_;
		ValaSymbol* _tmp6_;
		ValaSymbol* _tmp7_;
		_tmp2_ = sym;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_CONSTRUCTOR)) {
			result = TRUE;
			_vala_code_node_unref0 (sym);
			return result;
		}
		_tmp4_ = sym;
		_tmp5_ = vala_symbol_get_parent_symbol (_tmp4_);
		_tmp6_ = _tmp5_;
		_tmp7_ = _vala_code_node_ref0 (_tmp6_);
		_vala_code_node_unref0 (sym);
		sym = _tmp7_;
	}
	result = FALSE;
	_vala_code_node_unref0 (sym);
	return result;
}


gboolean vala_semantic_analyzer_is_in_destructor (ValaSemanticAnalyzer* self) {
	gboolean result = FALSE;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_current_symbol;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	sym = _tmp1_;
	while (TRUE) {
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		ValaSymbol* _tmp5_;
		ValaSymbol* _tmp6_;
		ValaSymbol* _tmp7_;
		_tmp2_ = sym;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_DESTRUCTOR)) {
			result = TRUE;
			_vala_code_node_unref0 (sym);
			return result;
		}
		_tmp4_ = sym;
		_tmp5_ = vala_symbol_get_parent_symbol (_tmp4_);
		_tmp6_ = _tmp5_;
		_tmp7_ = _vala_code_node_ref0 (_tmp6_);
		_vala_code_node_unref0 (sym);
		sym = _tmp7_;
	}
	result = FALSE;
	_vala_code_node_unref0 (sym);
	return result;
}


ValaCodeContext* vala_semantic_analyzer_get_context (ValaSemanticAnalyzer* self) {
	ValaCodeContext* result;
	ValaCodeContext* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_context;
	result = _tmp0_;
	return result;
}


static gpointer _vala_code_context_ref0 (gpointer self) {
	return self ? vala_code_context_ref (self) : NULL;
}


void vala_semantic_analyzer_set_context (ValaSemanticAnalyzer* self, ValaCodeContext* value) {
	ValaCodeContext* _tmp0_;
	ValaCodeContext* _tmp1_;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = _vala_code_context_ref0 (_tmp0_);
	_vala_code_context_unref0 (self->priv->_context);
	self->priv->_context = _tmp1_;
}


ValaSymbol* vala_semantic_analyzer_get_current_symbol (ValaSemanticAnalyzer* self) {
	ValaSymbol* result;
	ValaSymbol* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	result = _tmp0_;
	return result;
}


void vala_semantic_analyzer_set_current_symbol (ValaSemanticAnalyzer* self, ValaSymbol* value) {
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	_vala_code_node_unref0 (self->priv->_current_symbol);
	self->priv->_current_symbol = _tmp1_;
}


ValaSourceFile* vala_semantic_analyzer_get_current_source_file (ValaSemanticAnalyzer* self) {
	ValaSourceFile* result;
	ValaSourceFile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_source_file;
	result = _tmp0_;
	return result;
}


static gpointer _vala_source_file_ref0 (gpointer self) {
	return self ? vala_source_file_ref (self) : NULL;
}


void vala_semantic_analyzer_set_current_source_file (ValaSemanticAnalyzer* self, ValaSourceFile* value) {
	ValaSourceFile* _tmp0_;
	ValaSourceFile* _tmp1_;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = _vala_source_file_ref0 (_tmp0_);
	_vala_source_file_unref0 (self->priv->_current_source_file);
	self->priv->_current_source_file = _tmp1_;
}


ValaTypeSymbol* vala_semantic_analyzer_get_current_type_symbol (ValaSemanticAnalyzer* self) {
	ValaTypeSymbol* result;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	sym = _tmp1_;
	while (TRUE) {
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp5_;
		ValaSymbol* _tmp6_;
		ValaSymbol* _tmp7_;
		ValaSymbol* _tmp8_;
		_tmp2_ = sym;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_TYPESYMBOL)) {
			ValaSymbol* _tmp4_;
			_tmp4_ = sym;
			result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, VALA_TYPE_TYPESYMBOL, ValaTypeSymbol);
			_vala_code_node_unref0 (sym);
			return result;
		}
		_tmp5_ = sym;
		_tmp6_ = vala_symbol_get_parent_symbol (_tmp5_);
		_tmp7_ = _tmp6_;
		_tmp8_ = _vala_code_node_ref0 (_tmp7_);
		_vala_code_node_unref0 (sym);
		sym = _tmp8_;
	}
	result = NULL;
	_vala_code_node_unref0 (sym);
	return result;
}


ValaClass* vala_semantic_analyzer_get_current_class (ValaSemanticAnalyzer* self) {
	ValaClass* result;
	ValaTypeSymbol* _tmp0_;
	ValaTypeSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_semantic_analyzer_get_current_type_symbol (self);
	_tmp1_ = _tmp0_;
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_CLASS) ? ((ValaClass*) _tmp1_) : NULL;
	return result;
}


ValaStruct* vala_semantic_analyzer_get_current_struct (ValaSemanticAnalyzer* self) {
	ValaStruct* result;
	ValaTypeSymbol* _tmp0_;
	ValaTypeSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_semantic_analyzer_get_current_type_symbol (self);
	_tmp1_ = _tmp0_;
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_STRUCT) ? ((ValaStruct*) _tmp1_) : NULL;
	return result;
}


ValaMethod* vala_semantic_analyzer_get_current_method (ValaSemanticAnalyzer* self) {
	ValaMethod* result;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	sym = _tmp0_;
	while (TRUE) {
		ValaSymbol* _tmp1_;
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		_tmp1_ = sym;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_BLOCK)) {
			break;
		}
		_tmp2_ = sym;
		_tmp3_ = vala_symbol_get_parent_symbol (_tmp2_);
		_tmp4_ = _tmp3_;
		sym = _tmp4_;
	}
	_tmp5_ = sym;
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALA_TYPE_METHOD) ? ((ValaMethod*) _tmp5_) : NULL;
	return result;
}


ValaMethod* vala_semantic_analyzer_get_current_async_method (ValaSemanticAnalyzer* self) {
	ValaMethod* result;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp14_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	sym = _tmp0_;
	while (TRUE) {
		gboolean _tmp1_ = FALSE;
		ValaSymbol* _tmp2_;
		ValaMethod* m = NULL;
		ValaSymbol* _tmp4_;
		ValaMethod* _tmp5_;
		gboolean _tmp6_ = FALSE;
		ValaMethod* _tmp7_;
		ValaSymbol* _tmp11_;
		ValaSymbol* _tmp12_;
		ValaSymbol* _tmp13_;
		_tmp2_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, VALA_TYPE_BLOCK)) {
			_tmp1_ = TRUE;
		} else {
			ValaSymbol* _tmp3_;
			_tmp3_ = sym;
			_tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_METHOD);
		}
		if (!_tmp1_) {
			break;
		}
		_tmp4_ = sym;
		_tmp5_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, VALA_TYPE_METHOD) ? ((ValaMethod*) _tmp4_) : NULL);
		m = _tmp5_;
		_tmp7_ = m;
		if (_tmp7_ != NULL) {
			ValaMethod* _tmp8_;
			gboolean _tmp9_;
			gboolean _tmp10_;
			_tmp8_ = m;
			_tmp9_ = vala_method_get_coroutine (_tmp8_);
			_tmp10_ = _tmp9_;
			_tmp6_ = _tmp10_;
		} else {
			_tmp6_ = FALSE;
		}
		if (_tmp6_) {
			_vala_code_node_unref0 (m);
			break;
		}
		_tmp11_ = sym;
		_tmp12_ = vala_symbol_get_parent_symbol (_tmp11_);
		_tmp13_ = _tmp12_;
		sym = _tmp13_;
		_vala_code_node_unref0 (m);
	}
	_tmp14_ = sym;
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, VALA_TYPE_METHOD) ? ((ValaMethod*) _tmp14_) : NULL;
	return result;
}


ValaPropertyAccessor* vala_semantic_analyzer_get_current_property_accessor (ValaSemanticAnalyzer* self) {
	ValaPropertyAccessor* result;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	sym = _tmp0_;
	while (TRUE) {
		ValaSymbol* _tmp1_;
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		_tmp1_ = sym;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_BLOCK)) {
			break;
		}
		_tmp2_ = sym;
		_tmp3_ = vala_symbol_get_parent_symbol (_tmp2_);
		_tmp4_ = _tmp3_;
		sym = _tmp4_;
	}
	_tmp5_ = sym;
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALA_TYPE_PROPERTY_ACCESSOR) ? ((ValaPropertyAccessor*) _tmp5_) : NULL;
	return result;
}


ValaSymbol* vala_semantic_analyzer_get_current_method_or_property_accessor (ValaSemanticAnalyzer* self) {
	ValaSymbol* result;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	sym = _tmp0_;
	while (TRUE) {
		ValaSymbol* _tmp1_;
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		_tmp1_ = sym;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_BLOCK)) {
			break;
		}
		_tmp2_ = sym;
		_tmp3_ = vala_symbol_get_parent_symbol (_tmp2_);
		_tmp4_ = _tmp3_;
		sym = _tmp4_;
	}
	_tmp5_ = sym;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALA_TYPE_METHOD)) {
		ValaSymbol* _tmp6_;
		_tmp6_ = sym;
		result = _tmp6_;
		return result;
	} else {
		ValaSymbol* _tmp7_;
		_tmp7_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, VALA_TYPE_PROPERTY_ACCESSOR)) {
			ValaSymbol* _tmp8_;
			_tmp8_ = sym;
			result = _tmp8_;
			return result;
		} else {
			result = NULL;
			return result;
		}
	}
}


ValaDataType* vala_semantic_analyzer_get_current_return_type (ValaSemanticAnalyzer* self) {
	ValaDataType* result;
	ValaMethod* m = NULL;
	ValaMethod* _tmp0_;
	ValaMethod* _tmp1_;
	ValaMethod* _tmp2_;
	ValaMethod* _tmp3_;
	ValaPropertyAccessor* acc = NULL;
	ValaPropertyAccessor* _tmp7_;
	ValaPropertyAccessor* _tmp8_;
	ValaPropertyAccessor* _tmp9_;
	ValaPropertyAccessor* _tmp10_;
	gboolean _tmp18_ = FALSE;
	gboolean _tmp19_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_semantic_analyzer_get_current_method (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = _vala_code_node_ref0 (_tmp1_);
	m = _tmp2_;
	_tmp3_ = m;
	if (_tmp3_ != NULL) {
		ValaMethod* _tmp4_;
		ValaDataType* _tmp5_;
		ValaDataType* _tmp6_;
		_tmp4_ = m;
		_tmp5_ = vala_callable_get_return_type ((ValaCallable*) _tmp4_);
		_tmp6_ = _tmp5_;
		result = _tmp6_;
		_vala_code_node_unref0 (m);
		return result;
	}
	_tmp7_ = vala_semantic_analyzer_get_current_property_accessor (self);
	_tmp8_ = _tmp7_;
	_tmp9_ = _vala_code_node_ref0 (_tmp8_);
	acc = _tmp9_;
	_tmp10_ = acc;
	if (_tmp10_ != NULL) {
		ValaPropertyAccessor* _tmp11_;
		gboolean _tmp12_;
		gboolean _tmp13_;
		_tmp11_ = acc;
		_tmp12_ = vala_property_accessor_get_readable (_tmp11_);
		_tmp13_ = _tmp12_;
		if (_tmp13_) {
			ValaPropertyAccessor* _tmp14_;
			ValaDataType* _tmp15_;
			ValaDataType* _tmp16_;
			_tmp14_ = acc;
			_tmp15_ = vala_property_accessor_get_value_type (_tmp14_);
			_tmp16_ = _tmp15_;
			result = _tmp16_;
			_vala_code_node_unref0 (acc);
			_vala_code_node_unref0 (m);
			return result;
		} else {
			ValaDataType* _tmp17_;
			_tmp17_ = self->void_type;
			result = _tmp17_;
			_vala_code_node_unref0 (acc);
			_vala_code_node_unref0 (m);
			return result;
		}
	}
	_tmp19_ = vala_semantic_analyzer_is_in_constructor (self);
	if (_tmp19_) {
		_tmp18_ = TRUE;
	} else {
		gboolean _tmp20_;
		_tmp20_ = vala_semantic_analyzer_is_in_destructor (self);
		_tmp18_ = _tmp20_;
	}
	if (_tmp18_) {
		ValaDataType* _tmp21_;
		_tmp21_ = self->void_type;
		result = _tmp21_;
		_vala_code_node_unref0 (acc);
		_vala_code_node_unref0 (m);
		return result;
	}
	result = NULL;
	_vala_code_node_unref0 (acc);
	_vala_code_node_unref0 (m);
	return result;
}


static void vala_semantic_analyzer_class_init (ValaSemanticAnalyzerClass * klass) {
	vala_semantic_analyzer_parent_class = g_type_class_peek_parent (klass);
	((ValaCodeVisitorClass *) klass)->finalize = vala_semantic_analyzer_finalize;
	g_type_class_add_private (klass, sizeof (ValaSemanticAnalyzerPrivate));
	((ValaCodeVisitorClass *) klass)->visit_source_file = (void (*) (ValaCodeVisitor *, ValaSourceFile*)) vala_semantic_analyzer_real_visit_source_file;
}


static void vala_semantic_analyzer_instance_init (ValaSemanticAnalyzer * self) {
	ValaVoidType* _tmp0_;
	GEqualFunc _tmp1_;
	ValaArrayList* _tmp2_;
	self->priv = VALA_SEMANTIC_ANALYZER_GET_PRIVATE (self);
	_tmp0_ = vala_void_type_new (NULL);
	self->void_type = (ValaDataType*) _tmp0_;
	self->next_lambda_id = 0;
	_tmp1_ = g_direct_equal;
	_tmp2_ = vala_array_list_new (VALA_TYPE_CODE_NODE, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp1_);
	self->replaced_nodes = (ValaList*) _tmp2_;
}


static void vala_semantic_analyzer_finalize (ValaCodeVisitor * obj) {
	ValaSemanticAnalyzer * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_SEMANTIC_ANALYZER, ValaSemanticAnalyzer);
	_vala_code_context_unref0 (self->priv->_context);
	_vala_code_node_unref0 (self->root_symbol);
	_vala_code_node_unref0 (self->priv->_current_symbol);
	_vala_source_file_unref0 (self->priv->_current_source_file);
	_vala_code_node_unref0 (self->insert_block);
	_vala_code_node_unref0 (self->void_type);
	_vala_code_node_unref0 (self->bool_type);
	_vala_code_node_unref0 (self->string_type);
	_vala_code_node_unref0 (self->regex_type);
	_vala_code_node_unref0 (self->uchar_type);
	_vala_code_node_unref0 (self->short_type);
	_vala_code_node_unref0 (self->ushort_type);
	_vala_code_node_unref0 (self->int_type);
	_vala_code_node_unref0 (self->uint_type);
	_vala_code_node_unref0 (self->long_type);
	_vala_code_node_unref0 (self->ulong_type);
	_vala_code_node_unref0 (self->size_t_type);
	_vala_code_node_unref0 (self->ssize_t_type);
	_vala_code_node_unref0 (self->int8_type);
	_vala_code_node_unref0 (self->unichar_type);
	_vala_code_node_unref0 (self->double_type);
	_vala_code_node_unref0 (self->type_type);
	_vala_code_node_unref0 (self->va_list_type);
	_vala_code_node_unref0 (self->object_type);
	_vala_code_node_unref0 (self->gvalue_type);
	_vala_code_node_unref0 (self->gvariant_type);
	_vala_code_node_unref0 (self->glist_type);
	_vala_code_node_unref0 (self->gslist_type);
	_vala_code_node_unref0 (self->garray_type);
	_vala_code_node_unref0 (self->gvaluearray_type);
	_vala_code_node_unref0 (self->gerror_type);
	_vala_code_node_unref0 (self->list_type);
	_vala_code_node_unref0 (self->tuple_type);
	_vala_code_node_unref0 (self->error_type);
	_vala_code_node_unref0 (self->gsource_type);
	_vala_iterable_unref0 (self->replaced_nodes);
	VALA_CODE_VISITOR_CLASS (vala_semantic_analyzer_parent_class)->finalize (obj);
}


/**
 * Code visitor analyzing and checking code.
 */
GType vala_semantic_analyzer_get_type (void) {
	static volatile gsize vala_semantic_analyzer_type_id__volatile = 0;
	if (g_once_init_enter (&vala_semantic_analyzer_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValaSemanticAnalyzerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_semantic_analyzer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaSemanticAnalyzer), 0, (GInstanceInitFunc) vala_semantic_analyzer_instance_init, NULL };
		GType vala_semantic_analyzer_type_id;
		vala_semantic_analyzer_type_id = g_type_register_static (VALA_TYPE_CODE_VISITOR, "ValaSemanticAnalyzer", &g_define_type_info, 0);
		g_once_init_leave (&vala_semantic_analyzer_type_id__volatile, vala_semantic_analyzer_type_id);
	}
	return vala_semantic_analyzer_type_id__volatile;
}



