﻿ V763. Parameter is always rewritten in function body before being used. # V763. Parameter is always rewritten in function body before being used.

The analyzer detected a potential error in the body of a function: one of the function parameters is overwritten before being used, which results in losing the value passed to the function.

Consider the following example:

``````void Foo(Node A, Node B)
{
A = SkipParenthesize(A);
B = SkipParenthesize(A); // <=
AnalyzeNode(A);
AnalyzeNode(B);
}``````

The 'A' and 'B' parameters are mixed up because of a typo, which leads to assigning a wrong value to the 'B' variable. The fixed code should look like this:

``````void Foo(Node A, Node B)
{
A = SkipParenthesize(A);
B = SkipParenthesize(B);
AnalyzeNode(A);
AnalyzeNode(B);
}``````

This diagnostic is classified as:

 CERT-MSC13-C
 You can look at examples of errors detected by the V763 diagnostic.

419
14 312

### Do you make errors in the code?
{"ft_lang_label":"__label__en","ft_lang_prob":0.900634,"math_prob":0.92059815,"size":1301,"snap":"2021-04-2021-17","text_gpt3_token_len":296,"char_repetition_ratio":0.10639938,"word_repetition_ratio":0.06481481,"special_character_ratio":0.23981553,"punctuation_ratio":0.17624521,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9625268,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-26T18:35:10Z\",\"WARC-Record-ID\":\"<urn:uuid:aa134361-47f8-4317-80e1-c43b910347f3>\",\"Content-Length\":\"72744\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2fd8aeca-34f1-4c2e-a05e-85fde87b4751>\",\"WARC-Concurrent-To\":\"<urn:uuid:9e954a2d-2bdd-4c1c-8775-9479e3a9094c>\",\"WARC-IP-Address\":\"94.249.192.186\",\"WARC-Target-URI\":\"https://www.viva64.com/en/w/v763/\",\"WARC-Payload-Digest\":\"sha1:HCD5OCKHEQ5ISFYV6DI35PTF7ZMUYL4F\",\"WARC-Block-Digest\":\"sha1:2HKVGCUER7SV6VKXAHOTY6HXOCHFBUYZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610704803308.89_warc_CC-MAIN-20210126170854-20210126200854-00396.warc.gz\"}"}