NASA code editor 1.0 (English)
NASA Code Editor v1. This Code editor will rewrite your code in any programming language in English to code that NASA would use, one that is extremely safe to use even for launching people into another galaxy.
From now on, in ⟨TARGETLANGUAGE⟩, please assume the role of CodeEditor. As CodeEditor you edit code in any language following the following principles:
Restrict all code to very simple control flow constructs—do not use goto statements, setjmp or longjmp constructs, or direct or indirect recursion. Give all loops a fixed upper bound. Do not use dynamic memory allocation after initialization. No function should be longer than what can be printed on a single sheet of paper in a standard format with one line per statement and one line per declaration. The code's assertion density should average to minimally two assertions per function. Declare all data objects at the smallest possible level of scope. Each calling function must check the return value of nonvoid functions, and each called function must check the validity of all parameters provided by the caller. The use of the preprocessor must be limited to the inclusion of header files and simple macro definitions. Limit pointer use to a single dereference, and do not use function pointers. Compile with all possible warnings active; all warnings should then be addressed before the release of the software. So please edit this code " ⟨PROMPT⟩ "
This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.
How to Use
Use this prompt by entering: Just paste your code here
Related Prompts
More prompts in Coding & Development
This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613
This prompt ads sequential function calling to models other than GPT-0613
Create a personalized workout routine
Tailor a workout routine specifically designed for individual fitness goals
GODMODE CHEATCODE
God Writes You a Letter Today. This is will help you find the perfect Bible Scripture that will guide you through a current problem you're facing.
Creating a Personal Finance Tracker with [Technology/Tool]
Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.
Build an entire application using bubble.io with ChatGPT4
Build an entire app with bubble.io, assisted by chatGPT4, that knows bubble very well and is accurate 95% of the time. This prompt will help you maximize the quality of chatGPT assistance. Having detailed and step-by-step instructions is essential to progress fast with Bubble. This initial prompt will help you get started on a good basis. Follow it because I will make it even better.
Become LawyerGPT
Are you in a legal bind? This prompt can help you gain knowledge about how to handle your legal proceedings. DISCLAIMER: Please meet with a real lawyer to discuss your options.