/* tests-var.c generated by valac 0.12.1.1-323029-dirty, the Vala compiler
 * generated from tests-var.vala, do not modify */


#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <afrodite.h>
#include <valagee.h>
#include <gobject/gvaluecollector.h>


#define AFRODITE_TESTS_TYPE_VAR (afrodite_tests_var_get_type ())
#define AFRODITE_TESTS_VAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AFRODITE_TESTS_TYPE_VAR, AfroditeTestsVar))
#define AFRODITE_TESTS_VAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AFRODITE_TESTS_TYPE_VAR, AfroditeTestsVarClass))
#define AFRODITE_TESTS_IS_VAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AFRODITE_TESTS_TYPE_VAR))
#define AFRODITE_TESTS_IS_VAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AFRODITE_TESTS_TYPE_VAR))
#define AFRODITE_TESTS_VAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AFRODITE_TESTS_TYPE_VAR, AfroditeTestsVarClass))

typedef struct _AfroditeTestsVar AfroditeTestsVar;
typedef struct _AfroditeTestsVarClass AfroditeTestsVarClass;
typedef struct _AfroditeTestsVarPrivate AfroditeTestsVarPrivate;

#define AFRODITE_TESTS_TYPE_COMPLETION_MANAGER (afrodite_tests_completion_manager_get_type ())
#define AFRODITE_TESTS_COMPLETION_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AFRODITE_TESTS_TYPE_COMPLETION_MANAGER, AfroditeTestsCompletionManager))
#define AFRODITE_TESTS_COMPLETION_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AFRODITE_TESTS_TYPE_COMPLETION_MANAGER, AfroditeTestsCompletionManagerClass))
#define AFRODITE_TESTS_IS_COMPLETION_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AFRODITE_TESTS_TYPE_COMPLETION_MANAGER))
#define AFRODITE_TESTS_IS_COMPLETION_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AFRODITE_TESTS_TYPE_COMPLETION_MANAGER))
#define AFRODITE_TESTS_COMPLETION_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AFRODITE_TESTS_TYPE_COMPLETION_MANAGER, AfroditeTestsCompletionManagerClass))

typedef struct _AfroditeTestsCompletionManager AfroditeTestsCompletionManager;
typedef struct _AfroditeTestsCompletionManagerClass AfroditeTestsCompletionManagerClass;
#define _afrodite_result_item_unref0(var) ((var == NULL) ? NULL : (var = (afrodite_result_item_unref (var), NULL)))
#define _afrodite_query_result_unref0(var) ((var == NULL) ? NULL : (var = (afrodite_query_result_unref (var), NULL)))
#define _afrodite_tests_completion_manager_unref0(var) ((var == NULL) ? NULL : (var = (afrodite_tests_completion_manager_unref (var), NULL)))
typedef struct _AfroditeTestsParamSpecVar AfroditeTestsParamSpecVar;

struct _AfroditeTestsVar {
	GTypeInstance parent_instance;
	volatile int ref_count;
	AfroditeTestsVarPrivate * priv;
};

struct _AfroditeTestsVarClass {
	GTypeClass parent_class;
	void (*finalize) (AfroditeTestsVar *self);
};

struct _AfroditeTestsParamSpecVar {
	GParamSpec parent_instance;
};


static gpointer afrodite_tests_var_parent_class = NULL;
static AfroditeTestsCompletionManager* afrodite_tests_var__manager;
static AfroditeTestsCompletionManager* afrodite_tests_var__manager = NULL;

gpointer afrodite_tests_var_ref (gpointer instance);
void afrodite_tests_var_unref (gpointer instance);
GParamSpec* afrodite_tests_param_spec_var (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void afrodite_tests_value_set_var (GValue* value, gpointer v_object);
void afrodite_tests_value_take_var (GValue* value, gpointer v_object);
gpointer afrodite_tests_value_get_var (const GValue* value);
GType afrodite_tests_var_get_type (void) G_GNUC_CONST;
enum  {
	AFRODITE_TESTS_VAR_DUMMY_PROPERTY
};
gpointer afrodite_tests_completion_manager_ref (gpointer instance);
void afrodite_tests_completion_manager_unref (gpointer instance);
GParamSpec* afrodite_tests_param_spec_completion_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void afrodite_tests_value_set_completion_manager (GValue* value, gpointer v_object);
void afrodite_tests_value_take_completion_manager (GValue* value, gpointer v_object);
gpointer afrodite_tests_value_get_completion_manager (const GValue* value);
GType afrodite_tests_completion_manager_get_type (void) G_GNUC_CONST;
void afrodite_tests_var_test_simple_int (void);
AfroditeQueryResult* afrodite_tests_completion_manager_lookup_symbol (AfroditeTestsCompletionManager* self, const gchar* name, gint at_line, gint at_column);
void afrodite_tests_var_test_simple_string (void);
void afrodite_tests_var_test_simple_assign_string (void);
void afrodite_tests_var_test_simple_assign_method_call_string (void);
void afrodite_tests_var_test_simple_field_assign_double (void);
void afrodite_tests_var_test_simple_method_call_1_string (void);
void afrodite_tests_var_test_static_method_call_1_string (void);
void afrodite_tests_var_test_static_method_call_3_string (void);
void afrodite_tests_var_test_object_constructor_Test (void);
void afrodite_tests_var_test_bin_exp_simple_string (void);
void afrodite_tests_var_test_bin_expr_method_call_1_string (void);
void afrodite_tests_var_test_bin_expr_method_call_2_string (void);
void afrodite_tests_var_test_bin_exp_assign_instance_field_string (void);
void afrodite_tests_var_test_if_code_block_simple_string (void);
void afrodite_tests_var_test_if_code_block_method_call_1_string (void);
gint afrodite_tests_var_main (gchar** args, int args_length1);
static void _afrodite_tests_var_test_simple_int_gcallback (void);
static void _afrodite_tests_var_test_simple_string_gcallback (void);
static void _afrodite_tests_var_test_simple_assign_string_gcallback (void);
static void _afrodite_tests_var_test_simple_assign_method_call_string_gcallback (void);
static void _afrodite_tests_var_test_simple_field_assign_double_gcallback (void);
static void _afrodite_tests_var_test_simple_method_call_1_string_gcallback (void);
static void _afrodite_tests_var_test_static_method_call_1_string_gcallback (void);
static void _afrodite_tests_var_test_static_method_call_3_string_gcallback (void);
static void _afrodite_tests_var_test_object_constructor_Test_gcallback (void);
static void _afrodite_tests_var_test_bin_exp_simple_string_gcallback (void);
static void _afrodite_tests_var_test_bin_expr_method_call_1_string_gcallback (void);
static void _afrodite_tests_var_test_bin_expr_method_call_2_string_gcallback (void);
static void _afrodite_tests_var_test_bin_exp_assign_instance_field_string_gcallback (void);
static void _afrodite_tests_var_test_if_code_block_simple_string_gcallback (void);
static void _afrodite_tests_var_test_if_code_block_method_call_1_string_gcallback (void);
AfroditeTestsCompletionManager* afrodite_tests_completion_manager_new (const gchar* filename, gboolean absolute);
AfroditeTestsCompletionManager* afrodite_tests_completion_manager_construct (GType object_type, const gchar* filename, gboolean absolute);
void afrodite_tests_completion_manager_parse (AfroditeTestsCompletionManager* self);
AfroditeTestsVar* afrodite_tests_var_new (void);
AfroditeTestsVar* afrodite_tests_var_construct (GType object_type);
static void afrodite_tests_var_finalize (AfroditeTestsVar* obj);


void afrodite_tests_var_test_simple_int (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "simple_int", 22, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "int");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_simple_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "simple_str", 23, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_simple_assign_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "simple_assign_str", 24, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_simple_assign_method_call_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "simple_assign_method_call_str", 25, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_simple_field_assign_double (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "simple_field_assign_dbl", 26, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "double");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_simple_method_call_1_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "method_call_1_str", 27, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_static_method_call_1_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "static_method_call_1_str", 28, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_static_method_call_3_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "static_method_call_3_str", 29, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "int");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_object_constructor_Test (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "object_constr_Test", 30, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "Test");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_bin_exp_simple_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "bin_expr_simple_str", 32, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_bin_expr_method_call_1_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "bin_expr_method_call_1_str", 33, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_bin_expr_method_call_2_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "bin_expr_method_call_2_str", 34, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_bin_exp_assign_instance_field_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "bin_exp_assign_instance_field_str", 35, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_if_code_block_simple_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "if_code_block_simple_str", 38, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_var_test_if_code_block_method_call_1_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_var__manager, "if_code_block_method_call_1_str", 39, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


static void _afrodite_tests_var_test_simple_int_gcallback (void) {
	afrodite_tests_var_test_simple_int ();
}


static void _afrodite_tests_var_test_simple_string_gcallback (void) {
	afrodite_tests_var_test_simple_string ();
}


static void _afrodite_tests_var_test_simple_assign_string_gcallback (void) {
	afrodite_tests_var_test_simple_assign_string ();
}


static void _afrodite_tests_var_test_simple_assign_method_call_string_gcallback (void) {
	afrodite_tests_var_test_simple_assign_method_call_string ();
}


static void _afrodite_tests_var_test_simple_field_assign_double_gcallback (void) {
	afrodite_tests_var_test_simple_field_assign_double ();
}


static void _afrodite_tests_var_test_simple_method_call_1_string_gcallback (void) {
	afrodite_tests_var_test_simple_method_call_1_string ();
}


static void _afrodite_tests_var_test_static_method_call_1_string_gcallback (void) {
	afrodite_tests_var_test_static_method_call_1_string ();
}


static void _afrodite_tests_var_test_static_method_call_3_string_gcallback (void) {
	afrodite_tests_var_test_static_method_call_3_string ();
}


static void _afrodite_tests_var_test_object_constructor_Test_gcallback (void) {
	afrodite_tests_var_test_object_constructor_Test ();
}


static void _afrodite_tests_var_test_bin_exp_simple_string_gcallback (void) {
	afrodite_tests_var_test_bin_exp_simple_string ();
}


static void _afrodite_tests_var_test_bin_expr_method_call_1_string_gcallback (void) {
	afrodite_tests_var_test_bin_expr_method_call_1_string ();
}


static void _afrodite_tests_var_test_bin_expr_method_call_2_string_gcallback (void) {
	afrodite_tests_var_test_bin_expr_method_call_2_string ();
}


static void _afrodite_tests_var_test_bin_exp_assign_instance_field_string_gcallback (void) {
	afrodite_tests_var_test_bin_exp_assign_instance_field_string ();
}


static void _afrodite_tests_var_test_if_code_block_simple_string_gcallback (void) {
	afrodite_tests_var_test_if_code_block_simple_string ();
}


static void _afrodite_tests_var_test_if_code_block_method_call_1_string_gcallback (void) {
	afrodite_tests_var_test_if_code_block_method_call_1_string ();
}


gint afrodite_tests_var_main (gchar** args, int args_length1) {
	gint result = 0;
	AfroditeTestsCompletionManager* _tmp0_ = NULL;
	gint _tmp1_;
	g_test_init (&args_length1, &args, NULL);
	g_test_add_func ("/afrodite/var-test-simple-int", _afrodite_tests_var_test_simple_int_gcallback);
	g_test_add_func ("/afrodite/var-test-simple-string", _afrodite_tests_var_test_simple_string_gcallback);
	g_test_add_func ("/afrodite/var-test-simple-assign-string", _afrodite_tests_var_test_simple_assign_string_gcallback);
	g_test_add_func ("/afrodite/var-test-simple-assign-method-call-string", _afrodite_tests_var_test_simple_assign_method_call_string_gcallback);
	g_test_add_func ("/afrodite/var-test-simple-field-assign-double", _afrodite_tests_var_test_simple_field_assign_double_gcallback);
	g_test_add_func ("/afrodite/var-test-simple-method-call-1-string", _afrodite_tests_var_test_simple_method_call_1_string_gcallback);
	g_test_add_func ("/afrodite/var-test-static-method-call-1-string", _afrodite_tests_var_test_static_method_call_1_string_gcallback);
	g_test_add_func ("/afrodite/var-test-static-method-call-3-string", _afrodite_tests_var_test_static_method_call_3_string_gcallback);
	g_test_add_func ("/afrodite/var-test-object-constructor-Test", _afrodite_tests_var_test_object_constructor_Test_gcallback);
	g_test_add_func ("/afrodite/var-test-bin-exp-simple-string", _afrodite_tests_var_test_bin_exp_simple_string_gcallback);
	g_test_add_func ("/afrodite/var-test-bin-exp-method-call-1-string", _afrodite_tests_var_test_bin_expr_method_call_1_string_gcallback);
	g_test_add_func ("/afrodite/var-test-bin-exp-method-call-2-string", _afrodite_tests_var_test_bin_expr_method_call_2_string_gcallback);
	g_test_add_func ("/afrodite/var-test-bin-exp-assign-instance-field-string", _afrodite_tests_var_test_bin_exp_assign_instance_field_string_gcallback);
	g_test_add_func ("/afrodite/var-test-if-code-block-simple-string", _afrodite_tests_var_test_if_code_block_simple_string_gcallback);
	g_test_add_func ("/afrodite/var-test-if-code-block-method-call-1-string", _afrodite_tests_var_test_if_code_block_method_call_1_string_gcallback);
	_tmp0_ = afrodite_tests_completion_manager_new ("tests-var-source.vala", FALSE);
	_afrodite_tests_completion_manager_unref0 (afrodite_tests_var__manager);
	afrodite_tests_var__manager = _tmp0_;
	afrodite_tests_completion_manager_parse (afrodite_tests_var__manager);
	_tmp1_ = g_test_run ();
	result = _tmp1_;
	return result;
}


int main (int argc, char ** argv) {
	g_type_init ();
	return afrodite_tests_var_main (argv, argc);
}


AfroditeTestsVar* afrodite_tests_var_construct (GType object_type) {
	AfroditeTestsVar* self = NULL;
	self = (AfroditeTestsVar*) g_type_create_instance (object_type);
	return self;
}


AfroditeTestsVar* afrodite_tests_var_new (void) {
	return afrodite_tests_var_construct (AFRODITE_TESTS_TYPE_VAR);
}


static void afrodite_tests_value_var_init (GValue* value) {
	value->data[0].v_pointer = NULL;
}


static void afrodite_tests_value_var_free_value (GValue* value) {
	if (value->data[0].v_pointer) {
		afrodite_tests_var_unref (value->data[0].v_pointer);
	}
}


static void afrodite_tests_value_var_copy_value (const GValue* src_value, GValue* dest_value) {
	if (src_value->data[0].v_pointer) {
		dest_value->data[0].v_pointer = afrodite_tests_var_ref (src_value->data[0].v_pointer);
	} else {
		dest_value->data[0].v_pointer = NULL;
	}
}


static gpointer afrodite_tests_value_var_peek_pointer (const GValue* value) {
	return value->data[0].v_pointer;
}


static gchar* afrodite_tests_value_var_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	if (collect_values[0].v_pointer) {
		AfroditeTestsVar* object;
		object = collect_values[0].v_pointer;
		if (object->parent_instance.g_class == NULL) {
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		}
		value->data[0].v_pointer = afrodite_tests_var_ref (object);
	} else {
		value->data[0].v_pointer = NULL;
	}
	return NULL;
}


static gchar* afrodite_tests_value_var_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	AfroditeTestsVar** object_p;
	object_p = collect_values[0].v_pointer;
	if (!object_p) {
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
	}
	if (!value->data[0].v_pointer) {
		*object_p = NULL;
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
		*object_p = value->data[0].v_pointer;
	} else {
		*object_p = afrodite_tests_var_ref (value->data[0].v_pointer);
	}
	return NULL;
}


GParamSpec* afrodite_tests_param_spec_var (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	AfroditeTestsParamSpecVar* spec;
	g_return_val_if_fail (g_type_is_a (object_type, AFRODITE_TESTS_TYPE_VAR), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}


gpointer afrodite_tests_value_get_var (const GValue* value) {
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, AFRODITE_TESTS_TYPE_VAR), NULL);
	return value->data[0].v_pointer;
}


void afrodite_tests_value_set_var (GValue* value, gpointer v_object) {
	AfroditeTestsVar* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, AFRODITE_TESTS_TYPE_VAR));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, AFRODITE_TESTS_TYPE_VAR));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
		afrodite_tests_var_ref (value->data[0].v_pointer);
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		afrodite_tests_var_unref (old);
	}
}


void afrodite_tests_value_take_var (GValue* value, gpointer v_object) {
	AfroditeTestsVar* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, AFRODITE_TESTS_TYPE_VAR));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, AFRODITE_TESTS_TYPE_VAR));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		afrodite_tests_var_unref (old);
	}
}


static void afrodite_tests_var_class_init (AfroditeTestsVarClass * klass) {
	afrodite_tests_var_parent_class = g_type_class_peek_parent (klass);
	AFRODITE_TESTS_VAR_CLASS (klass)->finalize = afrodite_tests_var_finalize;
}


static void afrodite_tests_var_instance_init (AfroditeTestsVar * self) {
	self->ref_count = 1;
}


static void afrodite_tests_var_finalize (AfroditeTestsVar* obj) {
	AfroditeTestsVar * self;
	self = AFRODITE_TESTS_VAR (obj);
}


GType afrodite_tests_var_get_type (void) {
	static volatile gsize afrodite_tests_var_type_id__volatile = 0;
	if (g_once_init_enter (&afrodite_tests_var_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { afrodite_tests_value_var_init, afrodite_tests_value_var_free_value, afrodite_tests_value_var_copy_value, afrodite_tests_value_var_peek_pointer, "p", afrodite_tests_value_var_collect_value, "p", afrodite_tests_value_var_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (AfroditeTestsVarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) afrodite_tests_var_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AfroditeTestsVar), 0, (GInstanceInitFunc) afrodite_tests_var_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType afrodite_tests_var_type_id;
		afrodite_tests_var_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AfroditeTestsVar", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&afrodite_tests_var_type_id__volatile, afrodite_tests_var_type_id);
	}
	return afrodite_tests_var_type_id__volatile;
}


gpointer afrodite_tests_var_ref (gpointer instance) {
	AfroditeTestsVar* self;
	self = instance;
	g_atomic_int_inc (&self->ref_count);
	return instance;
}


void afrodite_tests_var_unref (gpointer instance) {
	AfroditeTestsVar* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		AFRODITE_TESTS_VAR_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}



