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

#include <stdlib.h>
#include <string.h>
#include <glib.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

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

static void _vala_main (void);

static void
_vala_main (void)
{
	gchar* nullable = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_;
	gchar* non_null = NULL;
	gchar* _tmp2_;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_;
	gchar* some_null = NULL;
	gchar* _tmp5_;
	const gchar* _tmp6_ = NULL;
	gchar* also_non_null = NULL;
	gchar* _tmp8_;
	const gchar* _tmp9_ = NULL;
	const gchar* _tmp10_;
	gchar* really_non_null = NULL;
	gchar* _tmp12_;
	nullable = NULL;
	_tmp1_ = nullable;
	_tmp0_ = _tmp1_;
	if (_tmp0_ == NULL) {
		_tmp0_ = "";
	}
	_tmp2_ = g_strdup ((const gchar*) _tmp0_);
	non_null = _tmp2_;
	_tmp4_ = nullable;
	_tmp3_ = _tmp4_;
	if (_tmp3_ == NULL) {
		_tmp3_ = NULL;
	}
	_tmp5_ = g_strdup (_tmp3_);
	some_null = _tmp5_;
	_tmp6_ = NULL;
	if (_tmp6_ == NULL) {
		const gchar* _tmp7_;
		_tmp7_ = non_null;
		_tmp6_ = _tmp7_;
	}
	_tmp8_ = g_strdup ((const gchar*) _tmp6_);
	also_non_null = _tmp8_;
	_tmp10_ = non_null;
	_tmp9_ = _tmp10_;
	if (_tmp9_ == NULL) {
		const gchar* _tmp11_;
		_tmp11_ = nullable;
		_tmp9_ = _tmp11_;
	}
	_tmp12_ = g_strdup ((const gchar*) _tmp9_);
	really_non_null = _tmp12_;
	_g_free0 (really_non_null);
	_g_free0 (also_non_null);
	_g_free0 (some_null);
	_g_free0 (non_null);
	_g_free0 (nullable);
}

int
main (int argc,
      char ** argv)
{
	_vala_main ();
	return 0;
}

