Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled expr() node {DeprecatedAttr} #113

Open
maxux opened this issue Mar 12, 2023 · 0 comments
Open

Unhandled expr() node {DeprecatedAttr} #113

maxux opened this issue Mar 12, 2023 · 0 comments
Labels
Bug Something isn't working

Comments

@maxux
Copy link

maxux commented Mar 12, 2023

Trying to convert this file:
https://github.com/freeflowuniverse/crystallib/blob/development-secp256k1/keysafe/secp256k1/secp256k1mod.c

Result in this:

C to V translator 0.3.1
  translating secp256k1mod.c  ... 

Unhandled expr() node {DeprecatedAttr} (ast line nr node.ast_line_nr "secp256k1mod.c"):
&Node{
    id: '0x1a17e50'
    kind_str: 'DeprecatedAttr'
    location: NodeLocation{
        offset: 0
        file: ''
        line: 0
        source_file: SourceFile{
            path: ''
        }
        spelling_file: SourceFile{
            path: ''
        }
    }
    range: Range{
        begin: Begin{
            spelling_file: SourceFile{
                path: ''
            }
        }
    }
    previous_declaration: ''
    name: ''
    ast_type: AstJsonType{
        desugared_qualified: ''
        qualified: ''
    }
    class_modifier: ''
    tags: ''
    initialization_type: ''
    value: ''
    value_number: 0
    opcode: ''
    ast_argument_type: AstJsonType{
        desugared_qualified: ''
        qualified: ''
    }
    array_filler: []
    declaration_id: ''
    label_id: ''
    is_postfix: false
    inner: []
    ref_declaration: RefDeclarationNode{
        kind_str: ''
        name: ''
        kind: BAD
    }
    kind: DeprecatedAttr
    current_child_id: 0
    is_builtin_type: false
    redeclarations_count: 0
}
/tmp/v_0/c2v.5510435663505860637.tmp.c:11676: at print_backtrace: Backtrace
/tmp/v_0/c2v.5510435663505860637.tmp.c:30720: by main__C2V_expr
/tmp/v_0/c2v.5510435663505860637.tmp.c:30381: by main__C2V_global_var_decl
/tmp/v_0/c2v.5510435663505860637.tmp.c:31018: by main__C2V_top_level
/tmp/v_0/c2v.5510435663505860637.tmp.c:30960: by main__C2V_translate_file
/tmp/v_0/c2v.5510435663505860637.tmp.c:30871: by main__main
/tmp/v_0/c2v.5510435663505860637.tmp.c:33053: by main

Conversion tried in an Ubuntu 20.04 docker and libsecp256k1 build from source (cloned from https://github.com/bitcoin-core/secp256k1)

@ArtemkaKun ArtemkaKun added the Bug Something isn't working label Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants