Public
Snippet $362 authored by Bat'

Jeu du plus ou moins généré par le compilateur Vala

plusmoins.c
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055
/* plusmoinsmoche.c generated by valac 0.34.4, the Vala compiler
 * generated from plusmoinsmoche.vala, do not modify */


#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gstdio.h>
#include <stdio.h>


#define PLUS_OU_MOINS_TYPE_RESULTAT (plus_ou_moins_resultat_get_type ())
#define _g_free0(var) (var = (g_free (var), NULL))

#define PLUS_OU_MOINS_TYPE_MSG_MANAGER (plus_ou_moins_msg_manager_get_type ())
#define PLUS_OU_MOINS_MSG_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUS_OU_MOINS_TYPE_MSG_MANAGER, PlusOuMoinsMsgManager))
#define PLUS_OU_MOINS_MSG_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUS_OU_MOINS_TYPE_MSG_MANAGER, PlusOuMoinsMsgManagerClass))
#define PLUS_OU_MOINS_IS_MSG_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUS_OU_MOINS_TYPE_MSG_MANAGER))
#define PLUS_OU_MOINS_IS_MSG_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUS_OU_MOINS_TYPE_MSG_MANAGER))
#define PLUS_OU_MOINS_MSG_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUS_OU_MOINS_TYPE_MSG_MANAGER, PlusOuMoinsMsgManagerClass))

typedef struct _PlusOuMoinsMsgManager PlusOuMoinsMsgManager;
typedef struct _PlusOuMoinsMsgManagerClass PlusOuMoinsMsgManagerClass;
typedef struct _PlusOuMoinsMsgManagerPrivate PlusOuMoinsMsgManagerPrivate;

#define PLUS_OU_MOINS_TYPE_JEU (plus_ou_moins_jeu_get_type ())
#define PLUS_OU_MOINS_JEU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUS_OU_MOINS_TYPE_JEU, PlusOuMoinsJeu))
#define PLUS_OU_MOINS_JEU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUS_OU_MOINS_TYPE_JEU, PlusOuMoinsJeuClass))
#define PLUS_OU_MOINS_IS_JEU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUS_OU_MOINS_TYPE_JEU))
#define PLUS_OU_MOINS_IS_JEU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUS_OU_MOINS_TYPE_JEU))
#define PLUS_OU_MOINS_JEU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUS_OU_MOINS_TYPE_JEU, PlusOuMoinsJeuClass))

typedef struct _PlusOuMoinsJeu PlusOuMoinsJeu;
typedef struct _PlusOuMoinsJeuClass PlusOuMoinsJeuClass;
typedef struct _PlusOuMoinsJeuPrivate PlusOuMoinsJeuPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))

typedef enum  {
	PLUS_OU_MOINS_RESULTAT_PLUS,
	PLUS_OU_MOINS_RESULTAT_MOINS,
	PLUS_OU_MOINS_RESULTAT_GAGNE
} PlusOuMoinsResultat;

struct _PlusOuMoinsMsgManager {
	GObject parent_instance;
	PlusOuMoinsMsgManagerPrivate * priv;
};

struct _PlusOuMoinsMsgManagerClass {
	GObjectClass parent_class;
};

struct _PlusOuMoinsMsgManagerPrivate {
	gchar* _msg_0;
	gchar* _msg_1;
	gchar* _msg_2;
	gchar* _msg_3;
};

struct _PlusOuMoinsJeu {
	GObject parent_instance;
	PlusOuMoinsJeuPrivate * priv;
};

struct _PlusOuMoinsJeuClass {
	GObjectClass parent_class;
};

struct _PlusOuMoinsJeuPrivate {
	PlusOuMoinsResultat r;
	PlusOuMoinsMsgManager* m;
	gint i;
};

typedef gint (*PlusOuMoinsBaz4) ();
typedef PlusOuMoinsBaz4 (*PlusOuMoinsBaz3) ();
typedef PlusOuMoinsBaz3 (*PlusOuMoinsBaz2) ();
typedef PlusOuMoinsBaz2 (*PlusOuMoinsBaz1) ();
typedef void (*PlusOuMoinsJeuNext) (GCallback next, void* next_target, GDestroyNotify* next_target_destroy_notify, void* user_data);

static gpointer plus_ou_moins_msg_manager_parent_class = NULL;
static gpointer plus_ou_moins_jeu_parent_class = NULL;

GType plus_ou_moins_resultat_get_type (void) G_GNUC_CONST;
gchar* plus_ou_moins_resultat_foo (PlusOuMoinsResultat self);
GType plus_ou_moins_msg_manager_get_type (void) G_GNUC_CONST;
#define PLUS_OU_MOINS_MSG_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUS_OU_MOINS_TYPE_MSG_MANAGER, PlusOuMoinsMsgManagerPrivate))
enum  {
	PLUS_OU_MOINS_MSG_MANAGER_DUMMY_PROPERTY,
	PLUS_OU_MOINS_MSG_MANAGER_MSG_0,
	PLUS_OU_MOINS_MSG_MANAGER_MSG_1,
	PLUS_OU_MOINS_MSG_MANAGER_MSG_2,
	PLUS_OU_MOINS_MSG_MANAGER_MSG_3
};
guint8* plus_ou_moins_msg_manager_get_msg (PlusOuMoinsMsgManager* self, gint i, int* result_length1);
static guint8* _vala_array_dup1 (guint8* self, int length);
PlusOuMoinsMsgManager* plus_ou_moins_msg_manager_new (void);
PlusOuMoinsMsgManager* plus_ou_moins_msg_manager_construct (GType object_type);
const gchar* plus_ou_moins_msg_manager_get_msg_0 (PlusOuMoinsMsgManager* self);
void plus_ou_moins_msg_manager_set_msg_0 (PlusOuMoinsMsgManager* self, const gchar* value);
const gchar* plus_ou_moins_msg_manager_get_msg_1 (PlusOuMoinsMsgManager* self);
void plus_ou_moins_msg_manager_set_msg_1 (PlusOuMoinsMsgManager* self, const gchar* value);
const gchar* plus_ou_moins_msg_manager_get_msg_2 (PlusOuMoinsMsgManager* self);
void plus_ou_moins_msg_manager_set_msg_2 (PlusOuMoinsMsgManager* self, const gchar* value);
const gchar* plus_ou_moins_msg_manager_get_msg_3 (PlusOuMoinsMsgManager* self);
void plus_ou_moins_msg_manager_set_msg_3 (PlusOuMoinsMsgManager* self, const gchar* value);
static void plus_ou_moins_msg_manager_finalize (GObject* obj);
static void _vala_plus_ou_moins_msg_manager_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_plus_ou_moins_msg_manager_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType plus_ou_moins_jeu_get_type (void) G_GNUC_CONST;
#define PLUS_OU_MOINS_JEU_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUS_OU_MOINS_TYPE_JEU, PlusOuMoinsJeuPrivate))
enum  {
	PLUS_OU_MOINS_JEU_DUMMY_PROPERTY
};
PlusOuMoinsBaz1 plus_ou_moins_jeu_take_int (void);
void plus_ou_moins_jeu_main (void);
PlusOuMoinsJeu* plus_ou_moins_jeu_new (void);
PlusOuMoinsJeu* plus_ou_moins_jeu_construct (GType object_type);
void plus_ou_moins_jeu_tour (PlusOuMoinsJeu* self, PlusOuMoinsJeuNext next, void* next_target, GDestroyNotify next_target_destroy_notify);
static void _plus_ou_moins_jeu_tour_plus_ou_moins_jeu_next (GCallback next, void* next_target, GDestroyNotify next_target_destroy_notify, gpointer self);
static PlusOuMoinsBaz2 __lambda4_ (void);
static PlusOuMoinsBaz3 __lambda5_ (void);
static PlusOuMoinsBaz4 __lambda6_ (void);
static gint __lambda7_ (void);
static gint ___lambda7__plus_ou_moins_baz4 (void);
static PlusOuMoinsBaz4 ___lambda6__plus_ou_moins_baz3 (void);
static PlusOuMoinsBaz3 ___lambda5__plus_ou_moins_baz2 (void);
static PlusOuMoinsBaz2 ___lambda4__plus_ou_moins_baz1 (void);
static void plus_ou_moins_jeu_finalize (GObject* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


gchar* plus_ou_moins_resultat_foo (PlusOuMoinsResultat self) {
	gchar* result = NULL;
	gchar* bar = NULL;
	gint l = 0;
	gchar** _tmp2_ = NULL;
	gchar** _tmp3_ = NULL;
	gchar** _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	gint _tmp5_ = 0;
	const gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	GError * _inner_error_ = NULL;
	l = 0;
	if (self == 1) {
		l = 6;
	} else {
		if (self == 0) {
			l = 5;
		} else {
			l = 7;
		}
	}
	{
		gchar* _tmp0_ = NULL;
		g_file_get_contents ("plusmoinsmoche.vala", &_tmp0_, NULL, &_inner_error_);
		_g_free0 (bar);
		bar = _tmp0_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		FILE* _tmp1_ = NULL;
		g_clear_error (&_inner_error_);
		_inner_error_ = NULL;
		_tmp1_ = stdout;
		fprintf (_tmp1_, "Il faut les sources.\n");
	}
	__finally0:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		_g_free0 (bar);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return NULL;
	}
	_tmp3_ = _tmp2_ = g_strsplit (bar, "\n", 0);
	_tmp4_ = _tmp3_;
	_tmp4__length1 = _vala_array_length (_tmp2_);
	_tmp5_ = l;
	_tmp6_ = _tmp4_[_tmp5_ - 1];
	_tmp7_ = g_strdup (_tmp6_);
	_tmp8_ = _tmp7_;
	_tmp4_ = (_vala_array_free (_tmp4_, _tmp4__length1, (GDestroyNotify) g_free), NULL);
	result = _tmp8_;
	_g_free0 (bar);
	return result;
}


GType plus_ou_moins_resultat_get_type (void) {
	static volatile gsize plus_ou_moins_resultat_type_id__volatile = 0;
	if (g_once_init_enter (&plus_ou_moins_resultat_type_id__volatile)) {
		static const GEnumValue values[] = {{PLUS_OU_MOINS_RESULTAT_PLUS, "PLUS_OU_MOINS_RESULTAT_PLUS", "plus"}, {PLUS_OU_MOINS_RESULTAT_MOINS, "PLUS_OU_MOINS_RESULTAT_MOINS", "moins"}, {PLUS_OU_MOINS_RESULTAT_GAGNE, "PLUS_OU_MOINS_RESULTAT_GAGNE", "gagne"}, {0, NULL, NULL}};
		GType plus_ou_moins_resultat_type_id;
		plus_ou_moins_resultat_type_id = g_enum_register_static ("PlusOuMoinsResultat", values);
		g_once_init_leave (&plus_ou_moins_resultat_type_id__volatile, plus_ou_moins_resultat_type_id);
	}
	return plus_ou_moins_resultat_type_id__volatile;
}


static guint8* string_get_data (const gchar* self, int* result_length1) {
	guint8* result;
	guint8* res = NULL;
	gint res_length1 = 0;
	gint _res_size_ = 0;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	g_return_val_if_fail (self != NULL, NULL);
	res = (guint8*) self;
	res_length1 = -1;
	_res_size_ = res_length1;
	_tmp0_ = strlen (self);
	_tmp1_ = _tmp0_;
	res_length1 = (gint) _tmp1_;
	_tmp2_ = res_length1;
	_tmp3_ = res;
	_tmp3__length1 = res_length1;
	_tmp4_ = _tmp3_;
	_tmp4__length1 = _tmp3__length1;
	if (result_length1) {
		*result_length1 = _tmp4__length1;
	}
	result = _tmp4_;
	return result;
}


static guint8* _vala_array_dup1 (guint8* self, int length) {
	return g_memdup (self, length * sizeof (guint8));
}


guint8* plus_ou_moins_msg_manager_get_msg (PlusOuMoinsMsgManager* self, gint i, int* result_length1) {
	guint8* result = NULL;
	GValue v = {0};
	GValue _tmp0_ = {0};
	gint _tmp1_ = 0;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	guint8* _tmp7_ = NULL;
	gint _tmp7__length1 = 0;
	guint8* _tmp8_ = NULL;
	gint _tmp8__length1 = 0;
	guint8* _tmp9_ = NULL;
	gint _tmp9__length1 = 0;
	guint8* _tmp10_ = NULL;
	gint _tmp10__length1 = 0;
	g_return_val_if_fail (self != NULL, NULL);
	g_value_init (&_tmp0_, G_TYPE_STRING);
	v = _tmp0_;
	_tmp1_ = i;
	_tmp2_ = g_strdup_printf ("%i", _tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = g_strdup_printf ("msg-%s", _tmp3_);
	_tmp5_ = _tmp4_;
	g_object_get_property ((GObject*) self, _tmp5_, &v);
	_g_free0 (_tmp5_);
	_g_free0 (_tmp3_);
	_tmp6_ = g_value_get_string (&v);
	_tmp7_ = string_get_data (_tmp6_, &_tmp7__length1);
	_tmp8_ = _tmp7_;
	_tmp8__length1 = _tmp7__length1;
	_tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup1 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
	_tmp9__length1 = _tmp8__length1;
	_tmp10_ = _tmp9_;
	_tmp10__length1 = _tmp9__length1;
	if (result_length1) {
		*result_length1 = _tmp10__length1;
	}
	result = _tmp10_;
	G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
	return result;
}


PlusOuMoinsMsgManager* plus_ou_moins_msg_manager_construct (GType object_type) {
	PlusOuMoinsMsgManager * self = NULL;
	self = (PlusOuMoinsMsgManager*) g_object_new (object_type, NULL);
	return self;
}


PlusOuMoinsMsgManager* plus_ou_moins_msg_manager_new (void) {
	return plus_ou_moins_msg_manager_construct (PLUS_OU_MOINS_TYPE_MSG_MANAGER);
}


const gchar* plus_ou_moins_msg_manager_get_msg_0 (PlusOuMoinsMsgManager* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_msg_0;
	result = _tmp0_;
	return result;
}


void plus_ou_moins_msg_manager_set_msg_0 (PlusOuMoinsMsgManager* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->priv->_msg_0);
	self->priv->_msg_0 = _tmp1_;
	g_object_notify ((GObject *) self, "msg-0");
}


const gchar* plus_ou_moins_msg_manager_get_msg_1 (PlusOuMoinsMsgManager* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_msg_1;
	result = _tmp0_;
	return result;
}


void plus_ou_moins_msg_manager_set_msg_1 (PlusOuMoinsMsgManager* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->priv->_msg_1);
	self->priv->_msg_1 = _tmp1_;
	g_object_notify ((GObject *) self, "msg-1");
}


const gchar* plus_ou_moins_msg_manager_get_msg_2 (PlusOuMoinsMsgManager* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_msg_2;
	result = _tmp0_;
	return result;
}


void plus_ou_moins_msg_manager_set_msg_2 (PlusOuMoinsMsgManager* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->priv->_msg_2);
	self->priv->_msg_2 = _tmp1_;
	g_object_notify ((GObject *) self, "msg-2");
}


const gchar* plus_ou_moins_msg_manager_get_msg_3 (PlusOuMoinsMsgManager* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_msg_3;
	result = _tmp0_;
	return result;
}


void plus_ou_moins_msg_manager_set_msg_3 (PlusOuMoinsMsgManager* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->priv->_msg_3);
	self->priv->_msg_3 = _tmp1_;
	g_object_notify ((GObject *) self, "msg-3");
}


static void plus_ou_moins_msg_manager_class_init (PlusOuMoinsMsgManagerClass * klass) {
	plus_ou_moins_msg_manager_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (PlusOuMoinsMsgManagerPrivate));
	G_OBJECT_CLASS (klass)->get_property = _vala_plus_ou_moins_msg_manager_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_plus_ou_moins_msg_manager_set_property;
	G_OBJECT_CLASS (klass)->finalize = plus_ou_moins_msg_manager_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PLUS_OU_MOINS_MSG_MANAGER_MSG_0, g_param_spec_string ("msg-0", "msg-0", "msg-0", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PLUS_OU_MOINS_MSG_MANAGER_MSG_1, g_param_spec_string ("msg-1", "msg-1", "msg-1", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PLUS_OU_MOINS_MSG_MANAGER_MSG_2, g_param_spec_string ("msg-2", "msg-2", "msg-2", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PLUS_OU_MOINS_MSG_MANAGER_MSG_3, g_param_spec_string ("msg-3", "msg-3", "msg-3", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}


static void plus_ou_moins_msg_manager_instance_init (PlusOuMoinsMsgManager * self) {
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	self->priv = PLUS_OU_MOINS_MSG_MANAGER_GET_PRIVATE (self);
	_tmp0_ = g_strdup ("Bienvenue dans le jeu du plus ou du moins\n");
	self->priv->_msg_0 = _tmp0_;
	_tmp1_ = g_strdup ("Entre un nombre :\n");
	self->priv->_msg_1 = _tmp1_;
	_tmp2_ = g_strdup ("Le nombre doit être compris entre 0 et 99 inclus");
	self->priv->_msg_2 = _tmp2_;
	_tmp3_ = g_strdup ("GAGNÉ !!!!!");
	self->priv->_msg_3 = _tmp3_;
}


static void plus_ou_moins_msg_manager_finalize (GObject* obj) {
	PlusOuMoinsMsgManager * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUS_OU_MOINS_TYPE_MSG_MANAGER, PlusOuMoinsMsgManager);
	_g_free0 (self->priv->_msg_0);
	_g_free0 (self->priv->_msg_1);
	_g_free0 (self->priv->_msg_2);
	_g_free0 (self->priv->_msg_3);
	G_OBJECT_CLASS (plus_ou_moins_msg_manager_parent_class)->finalize (obj);
}


GType plus_ou_moins_msg_manager_get_type (void) {
	static volatile gsize plus_ou_moins_msg_manager_type_id__volatile = 0;
	if (g_once_init_enter (&plus_ou_moins_msg_manager_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (PlusOuMoinsMsgManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plus_ou_moins_msg_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PlusOuMoinsMsgManager), 0, (GInstanceInitFunc) plus_ou_moins_msg_manager_instance_init, NULL };
		GType plus_ou_moins_msg_manager_type_id;
		plus_ou_moins_msg_manager_type_id = g_type_register_static (G_TYPE_OBJECT, "PlusOuMoinsMsgManager", &g_define_type_info, 0);
		g_once_init_leave (&plus_ou_moins_msg_manager_type_id__volatile, plus_ou_moins_msg_manager_type_id);
	}
	return plus_ou_moins_msg_manager_type_id__volatile;
}


static void _vala_plus_ou_moins_msg_manager_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	PlusOuMoinsMsgManager * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PLUS_OU_MOINS_TYPE_MSG_MANAGER, PlusOuMoinsMsgManager);
	switch (property_id) {
		case PLUS_OU_MOINS_MSG_MANAGER_MSG_0:
		g_value_set_string (value, plus_ou_moins_msg_manager_get_msg_0 (self));
		break;
		case PLUS_OU_MOINS_MSG_MANAGER_MSG_1:
		g_value_set_string (value, plus_ou_moins_msg_manager_get_msg_1 (self));
		break;
		case PLUS_OU_MOINS_MSG_MANAGER_MSG_2:
		g_value_set_string (value, plus_ou_moins_msg_manager_get_msg_2 (self));
		break;
		case PLUS_OU_MOINS_MSG_MANAGER_MSG_3:
		g_value_set_string (value, plus_ou_moins_msg_manager_get_msg_3 (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_plus_ou_moins_msg_manager_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	PlusOuMoinsMsgManager * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PLUS_OU_MOINS_TYPE_MSG_MANAGER, PlusOuMoinsMsgManager);
	switch (property_id) {
		case PLUS_OU_MOINS_MSG_MANAGER_MSG_0:
		plus_ou_moins_msg_manager_set_msg_0 (self, g_value_get_string (value));
		break;
		case PLUS_OU_MOINS_MSG_MANAGER_MSG_1:
		plus_ou_moins_msg_manager_set_msg_1 (self, g_value_get_string (value));
		break;
		case PLUS_OU_MOINS_MSG_MANAGER_MSG_2:
		plus_ou_moins_msg_manager_set_msg_2 (self, g_value_get_string (value));
		break;
		case PLUS_OU_MOINS_MSG_MANAGER_MSG_3:
		plus_ou_moins_msg_manager_set_msg_3 (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _plus_ou_moins_jeu_tour_plus_ou_moins_jeu_next (GCallback next, void* next_target, GDestroyNotify next_target_destroy_notify, gpointer self) {
	plus_ou_moins_jeu_tour ((PlusOuMoinsJeu*) self, next, next_target, next_target_destroy_notify);
}


void plus_ou_moins_jeu_main (void) {
	FILE* _tmp0_ = NULL;
	PlusOuMoinsJeu* _tmp1_ = NULL;
	PlusOuMoinsJeu* _tmp2_ = NULL;
	PlusOuMoinsMsgManager* _tmp3_ = NULL;
	gint _tmp4_ = 0;
	guint8* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	PlusOuMoinsJeu* jeu = NULL;
	GObject* _tmp7_ = NULL;
	GObject* _tmp8_ = NULL;
	PlusOuMoinsJeu* _tmp9_ = NULL;
	PlusOuMoinsJeu* _tmp10_ = NULL;
	PlusOuMoinsJeu* _tmp11_ = NULL;
	_tmp0_ = stdout;
	_tmp1_ = plus_ou_moins_jeu_new ();
	_tmp2_ = _tmp1_;
	_tmp3_ = _tmp2_->priv->m;
	_tmp5_ = plus_ou_moins_msg_manager_get_msg (_tmp3_, 0, &_tmp4_);
	_tmp6_ = (gchar*) _tmp5_;
	fprintf (_tmp0_, "%s", _tmp6_);
	_g_free0 (_tmp6_);
	_g_object_unref0 (_tmp2_);
	jeu = NULL;
	_tmp7_ = g_object_new (PLUS_OU_MOINS_TYPE_JEU, NULL);
	_tmp8_ = G_IS_INITIALLY_UNOWNED (_tmp7_) ? g_object_ref_sink (_tmp7_) : _tmp7_;
	_tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, PLUS_OU_MOINS_TYPE_JEU) ? ((PlusOuMoinsJeu*) _tmp8_) : NULL;
	if (_tmp9_ == NULL) {
		_g_object_unref0 (_tmp8_);
	}
	_g_object_unref0 (jeu);
	jeu = _tmp9_;
	_tmp10_ = jeu;
	_tmp11_ = jeu;
	plus_ou_moins_jeu_tour (_tmp10_, _plus_ou_moins_jeu_tour_plus_ou_moins_jeu_next, g_object_ref (_tmp11_), g_object_unref);
	exit ((gint) (42 < (42 * 42)));
	_g_object_unref0 (jeu);
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
	plus_ou_moins_jeu_main ();
	return 0;
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static gchar* g_file_stream_read_line (FILE* self) {
	gchar* result = NULL;
	gint c = 0;
	GString* ret = NULL;
	GString* _tmp7_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	ret = NULL;
	while (TRUE) {
		gint _tmp0_ = 0;
		gint _tmp1_ = 0;
		GString* _tmp2_ = NULL;
		gint _tmp4_ = 0;
		GString* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		_tmp0_ = fgetc (self);
		c = _tmp0_;
		_tmp1_ = c;
		if (!(_tmp1_ != EOF)) {
			break;
		}
		_tmp2_ = ret;
		if (_tmp2_ == NULL) {
			GString* _tmp3_ = NULL;
			_tmp3_ = g_string_new ("");
			_g_string_free0 (ret);
			ret = _tmp3_;
		}
		_tmp4_ = c;
		if (_tmp4_ == ((gint) '\n')) {
			break;
		}
		_tmp5_ = ret;
		_tmp6_ = c;
		g_string_append_c ((GString*) _tmp5_, (gchar) _tmp6_);
	}
	_tmp7_ = ret;
	if (_tmp7_ == NULL) {
		result = NULL;
		_g_string_free0 (ret);
		return result;
	} else {
		GString* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		_tmp8_ = ret;
		_tmp9_ = ((GString*) _tmp8_)->str;
		_tmp10_ = g_strdup (_tmp9_);
		result = _tmp10_;
		_g_string_free0 (ret);
		return result;
	}
	_g_string_free0 (ret);
}


static guint8* g_string_get_data (GString* self, int* result_length1) {
	guint8* result;
	guint8* res = NULL;
	const gchar* _tmp0_ = NULL;
	gint res_length1 = 0;
	gint _res_size_ = 0;
	gssize _tmp1_ = 0L;
	gint _tmp2_ = 0;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->str;
	res = (guint8*) _tmp0_;
	res_length1 = -1;
	_res_size_ = res_length1;
	_tmp1_ = self->len;
	res_length1 = (gint) _tmp1_;
	_tmp2_ = res_length1;
	_tmp3_ = res;
	_tmp3__length1 = res_length1;
	_tmp4_ = _tmp3_;
	_tmp4__length1 = _tmp3__length1;
	if (result_length1) {
		*result_length1 = _tmp4__length1;
	}
	result = _tmp4_;
	return result;
}


void plus_ou_moins_jeu_tour (PlusOuMoinsJeu* self, PlusOuMoinsJeuNext next, void* next_target, GDestroyNotify next_target_destroy_notify) {
	PlusOuMoinsJeu* _self_ = NULL;
	PlusOuMoinsJeu* _tmp0_ = NULL;
	FILE* _tmp1_ = NULL;
	PlusOuMoinsJeu* _tmp2_ = NULL;
	PlusOuMoinsMsgManager* _tmp3_ = NULL;
	gint _tmp4_ = 0;
	guint8* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gint c = 0;
	FILE* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gboolean m = FALSE;
	gint _tmp10_ = 0;
	gint _tmp11_ = 0;
	gboolean p = FALSE;
	gint _tmp12_ = 0;
	gint _tmp13_ = 0;
	gboolean e = FALSE;
	gint _tmp14_ = 0;
	gint _tmp15_ = 0;
	gboolean _tmp16_ = FALSE;
	gint _tmp17_ = 0;
	gboolean b = FALSE;
	gboolean _tmp19_ = FALSE;
	PlusOuMoinsResultat _tmp29_ = 0;
	gchar* _tmp30_ = NULL;
	gchar* _tmp31_ = NULL;
	gboolean _tmp32_ = FALSE;
	PlusOuMoinsJeuNext _tmp63_ = NULL;
	void* _tmp63__target = NULL;
	PlusOuMoinsJeu* _tmp64_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (self);
	_self_ = _tmp0_;
	_tmp1_ = stdout;
	_tmp2_ = _self_;
	_tmp3_ = _tmp2_->priv->m;
	_tmp5_ = plus_ou_moins_msg_manager_get_msg (_tmp3_, 1, &_tmp4_);
	_tmp6_ = (gchar*) _tmp5_;
	fprintf (_tmp1_, "%s", _tmp6_);
	_g_free0 (_tmp6_);
	c = 0;
	_tmp7_ = stdin;
	_tmp8_ = g_file_stream_read_line (_tmp7_);
	_tmp9_ = _tmp8_;
	sscanf (_tmp9_, "%d", &c);
	_g_free0 (_tmp9_);
	_tmp10_ = c;
	_tmp11_ = self->priv->i;
	m = _tmp10_ > _tmp11_;
	_tmp12_ = c;
	_tmp13_ = self->priv->i;
	p = _tmp12_ < _tmp13_;
	_tmp14_ = c;
	_tmp15_ = self->priv->i;
	e = _tmp14_ == _tmp15_;
	_tmp17_ = c;
	if (_tmp17_ < 0) {
		_tmp16_ = TRUE;
	} else {
		gint _tmp18_ = 0;
		_tmp18_ = c;
		_tmp16_ = _tmp18_ > 99;
	}
	b = _tmp16_;
	_tmp19_ = m;
	if (_tmp19_) {
		self->priv->r = PLUS_OU_MOINS_RESULTAT_MOINS;
	} else {
		gboolean _tmp20_ = FALSE;
		_tmp20_ = p;
		if (_tmp20_) {
			self->priv->r = PLUS_OU_MOINS_RESULTAT_PLUS;
		} else {
			gboolean _tmp21_ = FALSE;
			_tmp21_ = e;
			if (_tmp21_) {
				self->priv->r = PLUS_OU_MOINS_RESULTAT_GAGNE;
			} else {
				gboolean _tmp22_ = FALSE;
				_tmp22_ = b;
				if (_tmp22_) {
					FILE* _tmp23_ = NULL;
					PlusOuMoinsJeu* _tmp24_ = NULL;
					PlusOuMoinsMsgManager* _tmp25_ = NULL;
					gint _tmp26_ = 0;
					guint8* _tmp27_ = NULL;
					gchar* _tmp28_ = NULL;
					_tmp23_ = stdout;
					_tmp24_ = _self_;
					_tmp25_ = _tmp24_->priv->m;
					_tmp27_ = plus_ou_moins_msg_manager_get_msg (_tmp25_, 2, &_tmp26_);
					_tmp28_ = (gchar*) _tmp27_;
					fprintf (_tmp23_, "%s", _tmp28_);
					_g_free0 (_tmp28_);
				}
			}
		}
	}
	_tmp29_ = self->priv->r;
	_tmp30_ = plus_ou_moins_resultat_foo (_tmp29_);
	_tmp31_ = _tmp30_;
	_tmp32_ = g_strcmp0 (_tmp31_, "Plus") == 0;
	_g_free0 (_tmp31_);
	if (_tmp32_) {
		FILE* _tmp33_ = NULL;
		gchar* _tmp34_ = NULL;
		gchar* _tmp35_ = NULL;
		_tmp33_ = stdout;
		_tmp34_ = g_strdup_printf ("C'est %s\n", "plus !");
		_tmp35_ = _tmp34_;
		fprintf (_tmp33_, "%s", _tmp35_);
		_g_free0 (_tmp35_);
	} else {
		PlusOuMoinsResultat _tmp36_ = 0;
		gchar* _tmp37_ = NULL;
		gchar* _tmp38_ = NULL;
		gboolean _tmp39_ = FALSE;
		_tmp36_ = self->priv->r;
		_tmp37_ = plus_ou_moins_resultat_foo (_tmp36_);
		_tmp38_ = _tmp37_;
		_tmp39_ = g_strcmp0 (_tmp38_, "Moins") == 0;
		_g_free0 (_tmp38_);
		if (_tmp39_) {
			gchar* azerty = NULL;
			guint8* _tmp40_ = NULL;
			GString* w = NULL;
			GString* _tmp41_ = NULL;
			GString* _tmp42_ = NULL;
			GString* _tmp43_ = NULL;
			GString* _tmp44_ = NULL;
			GString* _tmp45_ = NULL;
			GString* _tmp46_ = NULL;
			const gchar* _tmp47_ = NULL;
			FILE* _tmp48_ = NULL;
			GString* _tmp49_ = NULL;
			guint8* _tmp50_ = NULL;
			gint _tmp50__length1 = 0;
			guint8* _tmp51_ = NULL;
			gint _tmp51__length1 = 0;
			guint8* _tmp52_ = NULL;
			gint _tmp52__length1 = 0;
			guint8* _tmp53_ = NULL;
			gint _tmp53__length1 = 0;
			_tmp40_ = g_new0 (guint8, 5);
			_tmp40_[0] = (guint8) 109;
			_tmp40_[1] = (guint8) 111;
			_tmp40_[2] = (guint8) 105;
			_tmp40_[3] = (guint8) 110;
			_tmp40_[4] = (guint8) 115;
			azerty = (gchar*) _tmp40_;
			_tmp41_ = g_string_new ("");
			w = _tmp41_;
			_tmp42_ = w;
			g_string_append (_tmp42_, "C");
			_tmp43_ = w;
			g_string_append (_tmp43_, "'");
			_tmp44_ = w;
			g_string_append (_tmp44_, "est");
			_tmp45_ = w;
			g_string_append (_tmp45_, " ");
			_tmp46_ = w;
			_tmp47_ = azerty;
			g_string_append (_tmp46_, _tmp47_);
			_tmp48_ = stdout;
			_tmp49_ = w;
			_tmp50_ = g_string_get_data (_tmp49_, &_tmp50__length1);
			_tmp51_ = _tmp50_;
			_tmp51__length1 = _tmp50__length1;
			_tmp52_ = string_get_data ((const gchar*) _tmp51_, &_tmp52__length1);
			_tmp53_ = _tmp52_;
			_tmp53__length1 = _tmp52__length1;
			fprintf (_tmp48_, "%s !\n", (const gchar*) _tmp53_);
			_g_string_free0 (w);
			_g_free0 (azerty);
		} else {
			gchar* baz = NULL;
			PlusOuMoinsResultat _tmp54_ = 0;
			gchar* _tmp55_ = NULL;
			_tmp54_ = self->priv->r;
			_tmp55_ = plus_ou_moins_resultat_foo (_tmp54_);
			baz = _tmp55_;
			if (!(!(!(!(g_strcmp0 (baz, "Gagné") == 0))))) {
				FILE* _tmp56_ = NULL;
				PlusOuMoinsJeu* _tmp57_ = NULL;
				PlusOuMoinsMsgManager* _tmp58_ = NULL;
				gint _tmp59_ = 0;
				guint8* _tmp60_ = NULL;
				gchar* _tmp61_ = NULL;
				_tmp56_ = stdout;
				_tmp57_ = _self_;
				_tmp58_ = _tmp57_->priv->m;
				_tmp60_ = plus_ou_moins_msg_manager_get_msg (_tmp58_, 3, &_tmp59_);
				_tmp61_ = (gchar*) _tmp60_;
				fprintf (_tmp56_, "%s\n", _tmp61_);
				_g_free0 (_tmp61_);
				_g_free0 (baz);
				_g_object_unref0 (_self_);
				(next_target_destroy_notify == NULL) ? NULL : (next_target_destroy_notify (next_target), NULL);
				next = NULL;
				next_target = NULL;
				next_target_destroy_notify = NULL;
				return;
			} else {
				FILE* _tmp62_ = NULL;
				_tmp62_ = stdout;
				fprintf (_tmp62_, "Lol, un bug");
				exit ('\0' + 1);
			}
			_g_free0 (baz);
		}
	}
	_tmp63_ = next;
	_tmp63__target = next_target;
	_tmp64_ = _self_;
	_tmp63_ (_plus_ou_moins_jeu_tour_plus_ou_moins_jeu_next, g_object_ref (_tmp64_), g_object_unref, _tmp63__target);
	_g_object_unref0 (_self_);
	(next_target_destroy_notify == NULL) ? NULL : (next_target_destroy_notify (next_target), NULL);
	next = NULL;
	next_target = NULL;
	next_target_destroy_notify = NULL;
}


static gint __lambda7_ (void) {
	gint result = 0;
	gint foo = 0;
	gint32 _tmp0_ = 0;
	gint32 _tmp6_ = 0;
	_tmp0_ = g_random_int_range ((gint32) 0, (gint32) 42);
	foo = (gint) _tmp0_;
	{
		gint g = 0;
		g = 0;
		{
			gboolean _tmp1_ = FALSE;
			_tmp1_ = TRUE;
			while (TRUE) {
				gint _tmp3_ = 0;
				gint _tmp4_ = 0;
				guint32 _tmp5_ = 0U;
				if (!_tmp1_) {
					gint _tmp2_ = 0;
					_tmp2_ = g;
					g = _tmp2_ + 1;
				}
				_tmp1_ = FALSE;
				_tmp3_ = g;
				_tmp4_ = foo;
				if (!(_tmp3_ < _tmp4_)) {
					break;
				}
				_tmp5_ = g_random_int ();
				g_random_set_seed (_tmp5_);
			}
		}
	}
	_tmp6_ = g_random_int_range ((gint32) 0, (gint32) 99);
	result = (gint) _tmp6_;
	return result;
}


static gint ___lambda7__plus_ou_moins_baz4 (void) {
	gint result;
	result = __lambda7_ ();
	return result;
}


static PlusOuMoinsBaz4 __lambda6_ (void) {
	PlusOuMoinsBaz4 result = NULL;
	result = ___lambda7__plus_ou_moins_baz4;
	return result;
}


static PlusOuMoinsBaz4 ___lambda6__plus_ou_moins_baz3 (void) {
	PlusOuMoinsBaz4 result;
	result = __lambda6_ ();
	return result;
}


static PlusOuMoinsBaz3 __lambda5_ (void) {
	PlusOuMoinsBaz3 result = NULL;
	result = ___lambda6__plus_ou_moins_baz3;
	return result;
}


static PlusOuMoinsBaz3 ___lambda5__plus_ou_moins_baz2 (void) {
	PlusOuMoinsBaz3 result;
	result = __lambda5_ ();
	return result;
}


static PlusOuMoinsBaz2 __lambda4_ (void) {
	PlusOuMoinsBaz2 result = NULL;
	result = ___lambda5__plus_ou_moins_baz2;
	return result;
}


static PlusOuMoinsBaz2 ___lambda4__plus_ou_moins_baz1 (void) {
	PlusOuMoinsBaz2 result;
	result = __lambda4_ ();
	return result;
}


PlusOuMoinsBaz1 plus_ou_moins_jeu_take_int (void) {
	PlusOuMoinsBaz1 result = NULL;
	result = ___lambda4__plus_ou_moins_baz1;
	return result;
}


PlusOuMoinsJeu* plus_ou_moins_jeu_construct (GType object_type) {
	PlusOuMoinsJeu * self = NULL;
	self = (PlusOuMoinsJeu*) g_object_new (object_type, NULL);
	return self;
}


PlusOuMoinsJeu* plus_ou_moins_jeu_new (void) {
	return plus_ou_moins_jeu_construct (PLUS_OU_MOINS_TYPE_JEU);
}


static void plus_ou_moins_jeu_class_init (PlusOuMoinsJeuClass * klass) {
	plus_ou_moins_jeu_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (PlusOuMoinsJeuPrivate));
	G_OBJECT_CLASS (klass)->finalize = plus_ou_moins_jeu_finalize;
}


static void plus_ou_moins_jeu_instance_init (PlusOuMoinsJeu * self) {
	GObject* _tmp0_ = NULL;
	GObject* _tmp1_ = NULL;
	PlusOuMoinsMsgManager* _tmp2_ = NULL;
	PlusOuMoinsBaz1 _tmp3_ = NULL;
	PlusOuMoinsBaz2 _tmp4_ = NULL;
	PlusOuMoinsBaz3 _tmp5_ = NULL;
	PlusOuMoinsBaz4 _tmp6_ = NULL;
	gint _tmp7_ = 0;
	self->priv = PLUS_OU_MOINS_JEU_GET_PRIVATE (self);
	_tmp0_ = g_object_new (PLUS_OU_MOINS_TYPE_MSG_MANAGER, NULL);
	_tmp1_ = G_IS_INITIALLY_UNOWNED (_tmp0_) ? g_object_ref_sink (_tmp0_) : _tmp0_;
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, PLUS_OU_MOINS_TYPE_MSG_MANAGER) ? ((PlusOuMoinsMsgManager*) _tmp1_) : NULL;
	if (_tmp2_ == NULL) {
		_g_object_unref0 (_tmp1_);
	}
	self->priv->m = _tmp2_;
	_tmp3_ = plus_ou_moins_jeu_take_int ();
	_tmp4_ = _tmp3_ ();
	_tmp5_ = _tmp4_ ();
	_tmp6_ = _tmp5_ ();
	_tmp7_ = _tmp6_ ();
	self->priv->i = _tmp7_;
}


static void plus_ou_moins_jeu_finalize (GObject* obj) {
	PlusOuMoinsJeu * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUS_OU_MOINS_TYPE_JEU, PlusOuMoinsJeu);
	_g_object_unref0 (self->priv->m);
	G_OBJECT_CLASS (plus_ou_moins_jeu_parent_class)->finalize (obj);
}


GType plus_ou_moins_jeu_get_type (void) {
	static volatile gsize plus_ou_moins_jeu_type_id__volatile = 0;
	if (g_once_init_enter (&plus_ou_moins_jeu_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (PlusOuMoinsJeuClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plus_ou_moins_jeu_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PlusOuMoinsJeu), 0, (GInstanceInitFunc) plus_ou_moins_jeu_instance_init, NULL };
		GType plus_ou_moins_jeu_type_id;
		plus_ou_moins_jeu_type_id = g_type_register_static (G_TYPE_OBJECT, "PlusOuMoinsJeu", &g_define_type_info, 0);
		g_once_init_leave (&plus_ou_moins_jeu_type_id__volatile, plus_ou_moins_jeu_type_id);
	}
	return plus_ou_moins_jeu_type_id__volatile;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}