(TranslationUnit
    (SymbolTable
        1
        {
            select_type_01:
                (Program
                    (SymbolTable
                        2
                        {
                            1_base_i:
                                (ExternalSymbol
                                    2
                                    1_base_i
                                    3 i
                                    base
                                    []
                                    i
                                    Public
                                ),
                            1_child_j:
                                (ExternalSymbol
                                    2
                                    1_child_j
                                    4 j
                                    child
                                    []
                                    j
                                    Public
                                ),
                            base:
                                (Struct
                                    (SymbolTable
                                        3
                                        {
                                            i:
                                                (Variable
                                                    3
                                                    i
                                                    []
                                                    Local
                                                    ()
                                                    ()
                                                    Default
                                                    (Integer 4)
                                                    ()
                                                    Source
                                                    Public
                                                    Required
                                                    .false.
                                                    .false.
                                                )
                                        })
                                    base
                                    []
                                    [i]
                                    Source
                                    Public
                                    .false.
                                    .false.
                                    []
                                    ()
                                    ()
                                ),
                            base_target:
                                (Variable
                                    2
                                    base_target
                                    []
                                    Local
                                    (StructConstructor
                                        2 base
                                        [((IntegerConstant 10 (Integer 4) Decimal))]
                                        (StructType
                                            2 base
                                        )
                                        ()
                                    )
                                    ()
                                    Default
                                    (StructType
                                        2 base
                                    )
                                    ()
                                    Source
                                    Public
                                    Required
                                    .false.
                                    .true.
                                ),
                            bptr:
                                (Variable
                                    2
                                    bptr
                                    []
                                    Local
                                    ()
                                    ()
                                    Default
                                    (Pointer
                                        (ClassType
                                            2 base
                                        )
                                    )
                                    ()
                                    Source
                                    Public
                                    Required
                                    .false.
                                    .false.
                                ),
                            child:
                                (Struct
                                    (SymbolTable
                                        4
                                        {
                                            j:
                                                (Variable
                                                    4
                                                    j
                                                    []
                                                    Local
                                                    ()
                                                    ()
                                                    Default
                                                    (Integer 4)
                                                    ()
                                                    Source
                                                    Public
                                                    Required
                                                    .false.
                                                    .false.
                                                )
                                        })
                                    child
                                    []
                                    [j]
                                    Source
                                    Public
                                    .false.
                                    .false.
                                    []
                                    ()
                                    2 base
                                ),
                            child_target:
                                (Variable
                                    2
                                    child_target
                                    []
                                    Local
                                    ()
                                    ()
                                    Default
                                    (StructType
                                        2 child
                                    )
                                    ()
                                    Source
                                    Public
                                    Required
                                    .false.
                                    .true.
                                ),
                            perform_select_type:
                                (Function
                                    (SymbolTable
                                        5
                                        {
                                            bptr:
                                                (Variable
                                                    5
                                                    bptr
                                                    []
                                                    Unspecified
                                                    ()
                                                    ()
                                                    Default
                                                    (Pointer
                                                        (ClassType
                                                            2 base
                                                        )
                                                    )
                                                    ()
                                                    Source
                                                    Public
                                                    Required
                                                    .false.
                                                    .false.
                                                ),
                                            ~select_type_block_:
                                                (Block
                                                    (SymbolTable
                                                        6
                                                        {
                                                            1_base_i:
                                                                (ExternalSymbol
                                                                    6
                                                                    1_base_i
                                                                    3 i
                                                                    base
                                                                    []
                                                                    i
                                                                    Public
                                                                )
                                                        })
                                                    ~select_type_block_
                                                    [(Print
                                                        (StringFormat
                                                            ()
                                                            [(StringConstant
                                                                "base type: component value: "
                                                                (String 1 28 () PointerString)
                                                            )
                                                            (StructInstanceMember
                                                                (Var 5 bptr)
                                                                6 1_base_i
                                                                (Integer 4)
                                                                ()
                                                            )]
                                                            FormatFortran
                                                            (String -1 0 () PointerString)
                                                            ()
                                                        )
                                                    )
                                                    (If
                                                        (IntegerCompare
                                                            (StructInstanceMember
                                                                (Var 5 bptr)
                                                                6 1_base_i
                                                                (Integer 4)
                                                                ()
                                                            )
                                                            NotEq
                                                            (IntegerConstant 10 (Integer 4) Decimal)
                                                            (Logical 4)
                                                            ()
                                                        )
                                                        [(ErrorStop
                                                            ()
                                                        )]
                                                        []
                                                    )]
                                                ),
                                            ~select_type_block_1:
                                                (Block
                                                    (SymbolTable
                                                        7
                                                        {
                                                            1_base_i:
                                                                (ExternalSymbol
                                                                    7
                                                                    1_base_i
                                                                    3 i
                                                                    base
                                                                    []
                                                                    i
                                                                    Public
                                                                ),
                                                            1_child_j:
                                                                (ExternalSymbol
                                                                    7
                                                                    1_child_j
                                                                    4 j
                                                                    child
                                                                    []
                                                                    j
                                                                    Public
                                                                )
                                                        })
                                                    ~select_type_block_1
                                                    [(Print
                                                        (StringFormat
                                                            ()
                                                            [(StringConstant
                                                                "child type: component values: "
                                                                (String 1 30 () PointerString)
                                                            )
                                                            (StructInstanceMember
                                                                (Var 5 bptr)
                                                                7 1_base_i
                                                                (Integer 4)
                                                                ()
                                                            )
                                                            (StructInstanceMember
                                                                (Var 5 bptr)
                                                                7 1_child_j
                                                                (Integer 4)
                                                                ()
                                                            )]
                                                            FormatFortran
                                                            (String -1 0 () PointerString)
                                                            ()
                                                        )
                                                    )
                                                    (If
                                                        (IntegerCompare
                                                            (StructInstanceMember
                                                                (Var 5 bptr)
                                                                7 1_base_i
                                                                (Integer 4)
                                                                ()
                                                            )
                                                            NotEq
                                                            (IntegerConstant 20 (Integer 4) Decimal)
                                                            (Logical 4)
                                                            ()
                                                        )
                                                        [(ErrorStop
                                                            ()
                                                        )]
                                                        []
                                                    )
                                                    (If
                                                        (IntegerCompare
                                                            (StructInstanceMember
                                                                (Var 5 bptr)
                                                                7 1_child_j
                                                                (Integer 4)
                                                                ()
                                                            )
                                                            NotEq
                                                            (IntegerConstant 30 (Integer 4) Decimal)
                                                            (Logical 4)
                                                            ()
                                                        )
                                                        [(ErrorStop
                                                            ()
                                                        )]
                                                        []
                                                    )]
                                                )
                                        })
                                    perform_select_type
                                    (FunctionType
                                        [(Pointer
                                            (ClassType
                                                2 base
                                            )
                                        )]
                                        ()
                                        Source
                                        Implementation
                                        ()
                                        .false.
                                        .false.
                                        .false.
                                        .false.
                                        .false.
                                        []
                                        .false.
                                    )
                                    []
                                    [(Var 5 bptr)]
                                    [(SelectType
                                        (Var 5 bptr)
                                        [(TypeStmtName
                                            2 base
                                            [(BlockCall
                                                -1
                                                5 ~select_type_block_
                                            )]
                                        )
                                        (TypeStmtName
                                            2 child
                                            [(BlockCall
                                                -1
                                                5 ~select_type_block_1
                                            )]
                                        )]
                                        []
                                    )]
                                    ()
                                    Public
                                    .false.
                                    .false.
                                    ()
                                )
                        })
                    select_type_01
                    []
                    [(Assignment
                        (Var 2 child_target)
                        (StructConstructor
                            2 child
                            [((IntegerConstant 20 (Integer 4) Decimal))
                            ((IntegerConstant 30 (Integer 4) Decimal))]
                            (StructType
                                2 child
                            )
                            ()
                        )
                        ()
                    )
                    (Print
                        (StringFormat
                            ()
                            [(StructInstanceMember
                                (Var 2 base_target)
                                2 1_base_i
                                (Integer 4)
                                ()
                            )]
                            FormatFortran
                            (String -1 0 () PointerString)
                            ()
                        )
                    )
                    (Print
                        (StringFormat
                            ()
                            [(StructInstanceMember
                                (Var 2 child_target)
                                2 1_base_i
                                (Integer 4)
                                ()
                            )
                            (StructInstanceMember
                                (Var 2 child_target)
                                2 1_child_j
                                (Integer 4)
                                ()
                            )]
                            FormatFortran
                            (String -1 0 () PointerString)
                            ()
                        )
                    )
                    (Associate
                        (Var 2 bptr)
                        (Var 2 child_target)
                    )
                    (SubroutineCall
                        2 perform_select_type
                        ()
                        [((Var 2 bptr))]
                        ()
                    )
                    (Associate
                        (Var 2 bptr)
                        (Var 2 base_target)
                    )
                    (SubroutineCall
                        2 perform_select_type
                        ()
                        [((Var 2 bptr))]
                        ()
                    )]
                )
        })
    []
)
