Project Name: Aareon+rtv
Language: Python
Statement Type: Branch

Source Code:
def _set_fallback(elements, src_field, fallback, dest_field=None):
        """
        Helper function used to set the fallback attributes of an element when
        they are defined by the configuration as "None" or "-".
        """

        if dest_field is None:
            dest_field = src_field
        if isinstance(fallback, six.string_types):
            fallback = elements[fallback]

        attrs = elements[src_field]
        elements[dest_field] = (
            attrs[0] if attrs[0] is not None else fallback[0],
            attrs[1] if attrs[1] is not None else fallback[1],
            attrs[2] if attrs[2] is not None else fallback[2])

_set_fallback(elements={'Normal': (-1, -1, 0), 'Selected': (-1, -1, 0), 'SelectedCursor': (-1, -1, 262144), 'TitleBar': (6, None, 2359296), 'OrderBar': (3, None, 2097152), 'OrderBarHighlight': (3, None, 2359296), 'HelpBar': (6, None, 2359296), 'Prompt': (6, None, 2359296), 'NoticeInfo': (None, None, 2097152), 'NoticeLoading': (None, None, 2097152), 'NoticeError': (None, None, 2097152), 'NoticeSuccess': (None, None, 2097152), 'CursorBlock': (None, None, None), 'CursorBar1': (5, None, None), 'CursorBar2': (6, None, None), 'CursorBar3': (2, None, None), 'CursorBar4': (3, None, None), 'CommentAuthor': (4, None, 2097152), 'CommentAuthorSelf': (2, None, 2097152), 'CommentCount': (None, None, None), 'CommentText': (None, None, None), 'Created': (None, None, None), 'Downvote': (1, None, 2097152), 'Gold': (3, None, 2097152), 'HiddenCommentExpand': (None, None, 2097152), 'HiddenCommentText': (None, None, None), 'MultiredditName': (3, None, 2097152), 'MultiredditText': (None, None, None), 'NeutralVote': (None, None, 2097152), 'NSFW': (1, None, 2359296), 'Saved': (2, None, None), 'Score': (None, None, None), 'Separator': (None, None, 2097152), 'Stickied': (2, None, None), 'SubscriptionName': (3, None, 2097152), 'SubscriptionText': (None, None, None), 'SubmissionAuthor': (2, None, 2097152), 'SubmissionFlair': (1, None, None), 'SubmissionSubreddit': (3, None, None), 'SubmissionText': (None, None, None), 'SubmissionTitle': (None, None, 2097152), 'SubmissionTitleSeen': (None, None, None), 'Upvote': (2, None, 2097152), 'Link': (4, None, 131072), 'LinkSeen': (5, None, 131072), 'UserFlair': (3, None, 2097152)}, src_field='Normal', fallback=(-1, -1, 0), dest_field=None)

Selected Statement: if dest_field is None:

Function Input:
elements: {'Normal': (-1, -1, 0), 'Selected': (-1, -1, 0), 'SelectedCursor': (-1, -1, 262144), 'TitleBar': (6, None, 2359296), 'OrderBar': (3, None, 2097152), 'OrderBarHighlight': (3, None, 2359296), 'HelpBar': (6, None, 2359296), 'Prompt': (6, None, 2359296), 'NoticeInfo': (None, None, 2097152), 'NoticeLoading': (None, None, 2097152), 'NoticeError': (None, None, 2097152), 'NoticeSuccess': (None, None, 2097152), 'CursorBlock': (None, None, None), 'CursorBar1': (5, None, None), 'CursorBar2': (6, None, None), 'CursorBar3': (2, None, None), 'CursorBar4': (3, None, None), 'CommentAuthor': (4, None, 2097152), 'CommentAuthorSelf': (2, None, 2097152), 'CommentCount': (None, None, None), 'CommentText': (None, None, None), 'Created': (None, None, None), 'Downvote': (1, None, 2097152), 'Gold': (3, None, 2097152), 'HiddenCommentExpand': (None, None, 2097152), 'HiddenCommentText': (None, None, None), 'MultiredditName': (3, None, 2097152), 'MultiredditText': (None, None, None), 'NeutralVote': (None, None, 2097152), 'NSFW': (1, None, 2359296), 'Saved': (2, None, None), 'Score': (None, None, None), 'Separator': (None, None, 2097152), 'Stickied': (2, None, None), 'SubscriptionName': (3, None, 2097152), 'SubscriptionText': (None, None, None), 'SubmissionAuthor': (2, None, 2097152), 'SubmissionFlair': (1, None, None), 'SubmissionSubreddit': (3, None, None), 'SubmissionText': (None, None, None), 'SubmissionTitle': (None, None, 2097152), 'SubmissionTitleSeen': (None, None, None), 'Upvote': (2, None, 2097152), 'Link': (4, None, 131072), 'LinkSeen': (5, None, 131072), 'UserFlair': (3, None, 2097152)}
src_field: 'Normal'
fallback: (-1, -1, 0)
dest_field: None

Variable Values Before Statement:
dest_field: None

Value After Statement Execution: Yes

Variable States During Runtime (line, value):
elements: 1
{'Normal': (-1, -1, 0), 'Selected': (-1, -1, 0), 'SelectedCursor': (-1, -1, 262144), 'TitleBar': (6, None, 2359296), 'OrderBar': (3, None, 2097152), 'OrderBarHighlight': (3, None, 2359296), 'HelpBar': (6, None, 2359296), 'Prompt': (6, None, 2359296), 'NoticeInfo': (None, None, 2097152), 'NoticeLoading': (None, None, 2097152), 'NoticeError': (None, None, 2097152), 'NoticeSuccess': (None, None, 2097152), 'CursorBlock': (None, None, None), 'CursorBar1': (5, None, None), 'CursorBar2': (6, None, None), 'CursorBar3': (2, None, None), 'CursorBar4': (3, None, None), 'CommentAuthor': (4, None, 2097152), 'CommentAuthorSelf': (2, None, 2097152), 'CommentCount': (None, None, None), 'CommentText': (None, None, None), 'Created': (None, None, None), 'Downvote': (1, None, 2097152), 'Gold': (3, None, 2097152), 'HiddenCommentExpand': (None, None, 2097152), 'HiddenCommentText': (None, None, None), 'MultiredditName': (3, None, 2097152), 'MultiredditText': (None, None, None), 'NeutralVote': (None, None, 2097152), 'NSFW': (1, None, 2359296), 'Saved': (2, None, None), 'Score': (None, None, None), 'Separator': (None, None, 2097152), 'Stickied': (2, None, None), 'SubscriptionName': (3, None, 2097152), 'SubscriptionText': (None, None, None), 'SubmissionAuthor': (2, None, 2097152), 'SubmissionFlair': (1, None, None), 'SubmissionSubreddit': (3, None, None), 'SubmissionText': (None, None, None), 'SubmissionTitle': (None, None, 2097152), 'SubmissionTitleSeen': (None, None, None), 'Upvote': (2, None, 2097152), 'Link': (4, None, 131072), 'LinkSeen': (5, None, 131072), 'UserFlair': (3, None, 2097152)}
src_field: 1
'Normal'
fallback: 1
(-1, -1, 0)
dest_field: 1
None
8
'Normal'
attrs: 12
(-1, -1, 0)