-/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
-* All rights reserved.
-*
-* Authors: Christian Schaefer, Goetz Lindenmaier
-*
-* testprogram.
-*/
+/*
+ * Project: libFIRM
+ * File name: testprograms/irr_cf_example.c
+ * Purpose: Test Phi construction with irregular control flow.
+ * Author: Christian Schaefer, Goetz Lindenmaier
+ * Modified by:
+ * Created:
+ * CVS-ID: $Id$
+ * Copyright: (c) 1999-2003 Universität Karlsruhe
+ * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
+ */
# include <stdio.h>
# include <string.h>
# include "irdump.h"
# include "firm.h"
-/*
- * irregular control flow
- */
/**
* This file constructs a control flow of following shape:
new_immBlock();
add_in_edge(get_irg_current_block(irg), t);
add_in_edge(get_irg_current_block(irg), jmp);
- {
- ir_node *in[0]; /* this is the array containing the return parameters */
- x = new_Return (get_store(), 0, in);
- }
+
+ x = new_Return (get_store(), 0, NULL);
+
mature_block (get_irg_current_block(irg));
add_in_edge (get_irg_end_block(irg), x);