(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.
                                                    .false.
                                                    ()
                                                    .false.
                                                    .false.
                                                    NotMethod
                                                    ()
                                                    []
                                                )
                                        })
                                    base
                                    (StructType
                                        [(Integer 4)]
                                        []
                                        .true.
                                        .false.
                                    )
                                    []
                                    [i]
                                    []
                                    Source
                                    Public
                                    .false.
                                    .false.
                                    .false.
                                    []
                                    ()
                                    ()
                                    []
                                ),
                            base_target:
                                (Variable
                                    2
                                    base_target
                                    []
                                    Local
                                    (StructConstructor
                                        2 base
                                        [((IntegerConstant 10 (Integer 4) Decimal))]
                                        (StructType
                                            [(Integer 4)]
                                            []
                                            .true.
                                            .false.
                                        )
                                        ()
                                    )
                                    ()
                                    Default
                                    (StructType
                                        [(Integer 4)]
                                        []
                                        .true.
                                        .false.
                                    )
                                    2 base
                                    Source
                                    Public
                                    Required
                                    .false.
                                    .true.
                                    .false.
                                    ()
                                    .false.
                                    .false.
                                    NotMethod
                                    ()
                                    []
                                ),
                            bptr:
                                (Variable
                                    2
                                    bptr
                                    []
                                    Local
                                    ()
                                    ()
                                    Default
                                    (Pointer
                                        (StructType
                                            [(Integer 4)]
                                            []
                                            .false.
                                            .false.
                                        )
                                    )
                                    2 base
                                    Source
                                    Public
                                    Required
                                    .false.
                                    .false.
                                    .false.
                                    ()
                                    .false.
                                    .false.
                                    NotMethod
                                    ()
                                    []
                                ),
                            child:
                                (Struct
                                    (SymbolTable
                                        4
                                        {
                                            j:
                                                (Variable
                                                    4
                                                    j
                                                    []
                                                    Local
                                                    ()
                                                    ()
                                                    Default
                                                    (Integer 4)
                                                    ()
                                                    Source
                                                    Public
                                                    Required
                                                    .false.
                                                    .false.
                                                    .false.
                                                    ()
                                                    .false.
                                                    .false.
                                                    NotMethod
                                                    ()
                                                    []
                                                )
                                        })
                                    child
                                    (StructType
                                        [(Integer 4)]
                                        []
                                        .true.
                                        .false.
                                    )
                                    []
                                    [j]
                                    []
                                    Source
                                    Public
                                    .false.
                                    .false.
                                    .false.
                                    []
                                    ()
                                    2 base
                                    []
                                ),
                            child_target:
                                (Variable
                                    2
                                    child_target
                                    []
                                    Local
                                    ()
                                    ()
                                    Default
                                    (StructType
                                        [(Integer 4)]
                                        []
                                        .true.
                                        .false.
                                    )
                                    2 child
                                    Source
                                    Public
                                    Required
                                    .false.
                                    .true.
                                    .false.
                                    ()
                                    .false.
                                    .false.
                                    NotMethod
                                    ()
                                    []
                                ),
                            perform_select_type:
                                (Function
                                    (SymbolTable
                                        5
                                        {
                                            bptr:
                                                (Variable
                                                    5
                                                    bptr
                                                    []
                                                    Unspecified
                                                    ()
                                                    ()
                                                    Default
                                                    (Pointer
                                                        (StructType
                                                            [(Integer 4)]
                                                            []
                                                            .false.
                                                            .false.
                                                        )
                                                    )
                                                    2 base
                                                    Source
                                                    Public
                                                    Required
                                                    .false.
                                                    .false.
                                                    .false.
                                                    ()
                                                    .false.
                                                    .false.
                                                    NotMethod
                                                    ()
                                                    []
                                                ),
                                            ~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 (IntegerConstant 28 (Integer 4) Decimal) ExpressionLength DescriptorString)
                                                            )
                                                            (StructInstanceMember
                                                                (Cast
                                                                    (Var 5 bptr)
                                                                    ClassToStruct
                                                                    (Pointer
                                                                        (StructType
                                                                            [(Integer 4)]
                                                                            []
                                                                            .true.
                                                                            .false.
                                                                        )
                                                                    )
                                                                    ()
                                                                    (Var 2 base)
                                                                )
                                                                6 1_base_i
                                                                (Integer 4)
                                                                ()
                                                            )]
                                                            FormatFortran
                                                            (Allocatable
                                                                (String 1 () DeferredLength DescriptorString)
                                                            )
                                                            ()
                                                        )
                                                    )
                                                    (If
                                                        ()
                                                        (IntegerCompare
                                                            (StructInstanceMember
                                                                (Cast
                                                                    (Var 5 bptr)
                                                                    ClassToStruct
                                                                    (Pointer
                                                                        (StructType
                                                                            [(Integer 4)]
                                                                            []
                                                                            .true.
                                                                            .false.
                                                                        )
                                                                    )
                                                                    ()
                                                                    (Var 2 base)
                                                                )
                                                                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 (IntegerConstant 30 (Integer 4) Decimal) ExpressionLength DescriptorString)
                                                            )
                                                            (StructInstanceMember
                                                                (Cast
                                                                    (Var 5 bptr)
                                                                    ClassToStruct
                                                                    (Pointer
                                                                        (StructType
                                                                            [(Integer 4)]
                                                                            []
                                                                            .true.
                                                                            .false.
                                                                        )
                                                                    )
                                                                    ()
                                                                    (Var 2 child)
                                                                )
                                                                7 1_base_i
                                                                (Integer 4)
                                                                ()
                                                            )
                                                            (StructInstanceMember
                                                                (Cast
                                                                    (Var 5 bptr)
                                                                    ClassToStruct
                                                                    (Pointer
                                                                        (StructType
                                                                            [(Integer 4)]
                                                                            []
                                                                            .true.
                                                                            .false.
                                                                        )
                                                                    )
                                                                    ()
                                                                    (Var 2 child)
                                                                )
                                                                7 1_child_j
                                                                (Integer 4)
                                                                ()
                                                            )]
                                                            FormatFortran
                                                            (Allocatable
                                                                (String 1 () DeferredLength DescriptorString)
                                                            )
                                                            ()
                                                        )
                                                    )
                                                    (If
                                                        ()
                                                        (IntegerCompare
                                                            (StructInstanceMember
                                                                (Cast
                                                                    (Var 5 bptr)
                                                                    ClassToStruct
                                                                    (Pointer
                                                                        (StructType
                                                                            [(Integer 4)]
                                                                            []
                                                                            .true.
                                                                            .false.
                                                                        )
                                                                    )
                                                                    ()
                                                                    (Var 2 child)
                                                                )
                                                                7 1_base_i
                                                                (Integer 4)
                                                                ()
                                                            )
                                                            NotEq
                                                            (IntegerConstant 20 (Integer 4) Decimal)
                                                            (Logical 4)
                                                            ()
                                                        )
                                                        [(ErrorStop
                                                            ()
                                                        )]
                                                        []
                                                    )
                                                    (If
                                                        ()
                                                        (IntegerCompare
                                                            (StructInstanceMember
                                                                (Cast
                                                                    (Var 5 bptr)
                                                                    ClassToStruct
                                                                    (Pointer
                                                                        (StructType
                                                                            [(Integer 4)]
                                                                            []
                                                                            .true.
                                                                            .false.
                                                                        )
                                                                    )
                                                                    ()
                                                                    (Var 2 child)
                                                                )
                                                                7 1_child_j
                                                                (Integer 4)
                                                                ()
                                                            )
                                                            NotEq
                                                            (IntegerConstant 30 (Integer 4) Decimal)
                                                            (Logical 4)
                                                            ()
                                                        )
                                                        [(ErrorStop
                                                            ()
                                                        )]
                                                        []
                                                    )]
                                                )
                                        })
                                    perform_select_type
                                    (FunctionType
                                        [(Pointer
                                            (StructType
                                                [(Integer 4)]
                                                []
                                                .false.
                                                .false.
                                            )
                                        )]
                                        ()
                                        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
                                [(Integer 4)]
                                []
                                .true.
                                .false.
                            )
                            ()
                        )
                        ()
                        .false.
                        .false.
                    )
                    (Print
                        (StringFormat
                            ()
                            [(StructInstanceMember
                                (Var 2 base_target)
                                2 1_base_i
                                (Integer 4)
                                ()
                            )]
                            FormatFortran
                            (Allocatable
                                (String 1 () DeferredLength DescriptorString)
                            )
                            ()
                        )
                    )
                    (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
                            (Allocatable
                                (String 1 () DeferredLength DescriptorString)
                            )
                            ()
                        )
                    )
                    (Associate
                        (Var 2 bptr)
                        (Var 2 child_target)
                    )
                    (SubroutineCall
                        2 perform_select_type
                        ()
                        [((Var 2 bptr))]
                        ()
                        .false.
                    )
                    (Associate
                        (Var 2 bptr)
                        (Var 2 base_target)
                    )
                    (SubroutineCall
                        2 perform_select_type
                        ()
                        [((Var 2 bptr))]
                        ()
                        .false.
                    )]
                )
        })
    []
)
