• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
        • Program-execution
          • Dynamic-instrumentation
          • Initialize-x86-state
          • Binary-file-load-fn
          • Read-channel-into-memory
          • Setting-up-page-tables
          • Read-channel-into-byte-list
          • Init-zero-page
          • Linux-load
          • Read-file-into-memory
          • Read-file-into-byte-list
          • Init-sys-view
          • Load-elf-sections
          • Chars-to-c-str
          • String-to-c-str
          • Pack-u64
          • Pack-u32
          • Concrete-simulation-examples
            • Fibonacci32-cosim
            • Fibonacci-cosim
              • X86isa-one-fib-cosim
              • Run-x86isa-fib
                • Check-fib-output
                • Fib
              • Factorial-cosim
              • Nop-cosim
              • Datacopy-cosim
            • Gdt-entry
          • Sdm-instruction-set-summary
          • Tlb
          • Running-linux
          • Introduction
          • Asmtest
          • X86isa-build-instructions
          • Publications
          • Contributors
          • Machine
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
            • Fibonacci32-cosim
            • Fibonacci-cosim
              • X86isa-one-fib-cosim
              • Run-x86isa-fib
                • Check-fib-output
                • Fib
              • Factorial-cosim
              • Nop-cosim
              • Datacopy-cosim
            • Utils
            • Debugging-code-proofs
          • Axe
          • Execloader
        • Math
        • Testing-utilities
      • Fibonacci-cosim

      Run-x86isa-fib

      Signature
      (run-x86isa-fib input start-address 
                      halt-address xrun-limit sys-view? x86) 
       
        → 
      (mv * * x86)
      Arguments
      sys-view? — Guard (booleanp sys-view?).

      Definitions and Theorems

      Function: run-x86isa-fib

      (defun run-x86isa-fib (input start-address
                                   halt-address xrun-limit sys-view? x86)
       (declare (xargs :stobjs (x86)))
       (declare (type (unsigned-byte 50) input)
                (type (signed-byte 48) start-address)
                (type (signed-byte 48) halt-address)
                (type (unsigned-byte 50) xrun-limit))
       (declare (xargs :guard (booleanp sys-view?)))
       (let ((__function__ 'run-x86isa-fib))
        (declare (ignorable __function__))
        (if (zp input)
            (mv t 0 x86)
          (b*
           (((mv flg steps x86)
             (x86isa-one-fib-cosim (1- input)
                                   start-address
                                   halt-address xrun-limit sys-view? x86))
            ((unless flg)
             (cw "~% Mismatch found!~%")
             (mv flg steps x86)))
           (run-x86isa-fib (1- input)
                           start-address halt-address
                           xrun-limit sys-view? x86)))))