• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
              • Json2ast-mutual-recursion-expressions
              • Json-fixtype-span-removal
              • Json2ast-mutual-recursion-statements
              • Json-value-is-span-object-p
              • Json-value-is-core-span-object-p
              • Json2ast-mutual-recursion-types
              • J2f-struct-declaration
              • J2f-console-statement
              • Jsonast-looks-like-function-definition-p
              • J2f-function-definition
              • J2f-assign-statement
              • Json-member-is-span-p
              • J2f-struct-declarations
              • J2f-let-or-const-statement
              • J2f-console-error
              • J2f-struct-members
              • J2f-return-statement
              • J2f-function-definitions
              • J2f-console-log
              • J2f-console-assert
              • Jsonast-looks-like-struct-declaration-p
              • J2f-funinputs
                • J2f-if-statement-tail
                • Jsonast-looks-like-file-p
                • J2f-iteration-statement
                • J2f-if-statement
                • J2f-block-statement
                • J2f-statements
                • J2f-statement
                • J2f-type
              • Testing
              • Definition
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Json2ast

    J2f-funinputs

    Converts a list of json fn input parameters to a leo::funinput-list.

    Signature
    (j2f-funinputs json-fn-inputs) → (mv erp leo-inputs)
    Arguments
    json-fn-inputs — Guard (json::value-listp json-fn-inputs).
    Returns
    erp — Type (booleanp erp).
    leo-inputs — Type (funinput-listp leo-inputs).

    Definitions and Theorems

    Function: j2f-funinputs

    (defun j2f-funinputs (json-fn-inputs)
      (declare (xargs :guard (json::value-listp json-fn-inputs)))
      (let ((__function__ 'j2f-funinputs))
        (declare (ignorable __function__))
        (b* (((when (endp json-fn-inputs))
              (mv nil nil))
             (inp (first json-fn-inputs))
             ((mv erp leo-fn-input)
              (j2f-outer-funinput inp))
             ((when erp) (mv t nil))
             ((mv erp rest-leo-fn-inputs)
              (j2f-funinputs (rest json-fn-inputs)))
             ((when erp) (mv t nil)))
          (mv nil
              (cons leo-fn-input rest-leo-fn-inputs)))))